std/c/README.md: Add section skeletons and don't indent lists
[sunny256-utils.git] / git-allfiles
blobe367d56d4b52095e5deb188f5d0dd654c65845c1
1 #!/bin/sh
3 #==============================================================================
4 # git-allfiles
5 # File ID: a51e903a-3457-11e4-a2e4-c80aa9e67bbd
7 # List all tree members (files and symlinks) in the whole Git history.
8 # Command line arguments are delivered to "git log".
10 # Author: Øyvind A. Holm <sunny@sunbase.org>
11 # License: GNU General Public License version 2 or later.
12 #==============================================================================
14 progname=git-allfiles
15 VERSION=0.2.0
17 if test "$1" = "--version"; then
18 echo $progname $VERSION
19 exit 0
22 if test "$1" = "-h" -o "$1" = "--help"; then
23 cat <<END
25 List all tree members (files and symlinks) in the whole Git history.
26 Command line arguments are delivered to "git log".
28 Usage: $progname [options] [ -- arguments_to_git_log ]
30 Options:
32 -h, --help
33 Show this help.
34 --version
35 Print version information.
37 END
38 exit 0
41 git log --raw --no-renames "$@" | grep ^: | cut -f 2 | sort -u
43 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :