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
64
65
66
67
68
// Warning!! Code generated automatically: this file must not be edited by hand
use crateoption_arg;
use crateFnOptionArg;
pub const SOFT: &str = "--soft";
pub const MIXED: &str = "--mixed";
pub const HARD: &str = "--hard";
pub const MERGE: &str = "--merge";
pub const KEEP: &str = "--keep";
pub const QUIET: &str = "--quiet";
pub const HYPHEN_HYPHEN: &str = "--";
/// Does not touch the index file or the working tree at all (but resets the head to <commit>, just like all modes do).
/// This leaves all your changed files 'Changes to be committed', as git status would put it.
/// --soft
/// Resets the index but not the working tree (i.e., the changed files are preserved but not marked for commit) and reports what has not been updated.
/// This is the default action.
/// If -N is specified, removed paths are marked as intent-to-add (see git-add(1)).
/// --mixed
/// Resets the index and working tree.
/// Any changes to tracked files in the working tree since <commit> are discarded.
/// --hard
/// Resets the index and updates the files in the working tree that are different between <commit> and HEAD,
/// but keeps those which are different between the index and working tree (i.e.
/// which have changes which have not been added).
/// If a file that is different between <commit> and the index has unstaged changes, reset is aborted.
/// In other words, --merge does something like a git read-tree -u -m <commit>, but carries forward unmerged index entries.
/// --merge
/// Resets index entries and updates files in the working tree that are different between <commit> and HEAD.
/// If a file that is different between <commit> and HEAD has local changes, reset is aborted.
/// --keep
/// Be quiet, only report errors.
/// -q, --quiet
/// Do not interpret any more arguments as options
/// --
/// Limits the paths affected by the operation.
/// <pathspec>