Debian Codegraph @

examples/git/git_commit.py

raw
1 """usage: git commit [options] [--] [<filepattern>...]
2
3 -h, --help
4 -q, --quiet suppress summary after successful commit
5 -v, --verbose show diff in commit message template
6
7 Commit message options
8 -F, --file <file> read message from file
9 --author <author> override author for commit
10 --date <date> override date for commit
11 -m, --message <message>
12 commit message
13 -c, --reedit-message <commit>
14 reuse and edit message from specified commit
15 -C, --reuse-message <commit>
16 reuse message from specified commit
17 --fixup <commit> use autosquash formatted message to fixup specified commit
18 --squash <commit> use autosquash formatted message to squash specified commit
19 --reset-author the commit is authored by me now
20 (used with -C-c/--amend)
21 -s, --signoff add Signed-off-by:
22 -t, --template <file>
23 use specified template file
24 -e, --edit force edit of commit
25 --cleanup <default> how to strip spaces and #comments from message
26 --status include status in commit message template
27
28 Commit contents options
29 -a, --all commit all changed files
30 -i, --include add specified files to index for commit
31 --interactive interactively add files
32 -o, --only commit only specified files
33 -n, --no-verify bypass pre-commit hook
34 --dry-run show what would be committed
35 --short show status concisely
36 --branch show branch information
37 --porcelain machine-readable output
38 -z, --null terminate entries with NUL
39 --amend amend previous commit
40 --no-post-rewrite bypass post-rewrite hook
41 -u, --untracked-files=<mode>
42 show untracked files, optional modes: all, normal, no.
43 [default: all]
44
45 """
46 from docopt import docopt
47
48
49 if __name__ == '__main__':
50 print(docopt(__doc__))