1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! What:
//! The private index and object store a commit's preparation reads and writes, and the Git request that selects them.
//! Why:
//! Staging and listing read the private commit index, and only staging writes objects, into the scratch object store;
//! `GIT_INDEX_FILE` and `GIT_OBJECT_DIRECTORY` select that private state while the invocation's global options are ignored,
//! as the incumbent does.
//!
//! In TS you'd write (pseudocode):
//! ```ts
//! runTransactionGit({ gitPath, cwd, indexPath, objectDirectory, args })
//! ```
use crateGitRequest;
use OsStr;
use ;
/// What:
/// The index and object-store inputs of one listing.
/// Why:
/// Staging and listing read the private index,
/// and only staging writes objects into the scratch store.
///
/// In TS you'd write (pseudocode):
/// ```ts
/// type Workspace = Pick<CommitTransactionWorkspace, 'capturedIndexPath' | 'commitIndexPath' | 'objectDirectory'>;
/// ```
/// What:
/// A Git request that reads or writes one private index,
/// ignoring the invocation's global options as the incumbent does.
/// Why:
/// `GIT_INDEX_FILE` and `GIT_OBJECT_DIRECTORY` select the private state.
///
/// In TS you'd write (pseudocode):
/// ```ts
/// runTransactionGit({ gitPath, cwd, indexPath, objectDirectory, args })
/// ```
/// Request controls stay out of the release executable.