mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
Add "git" and "git-log-script" helper scripts.
The "git" script is just shorthand: "git xyz <args>" will just execute "git-xyz-script <args>", which is useful for people used to the CVS naming convention. So "git log" will run the new git-log-script, which is just a wrapper around the new pretty-printing git-rev-list. Cheesy.
This commit is contained in:
parent
9d97aa6466
commit
e764b8e8b3
3 changed files with 9 additions and 2 deletions
5
Makefile
5
Makefile
|
@ -20,9 +20,10 @@ CC=gcc
|
|||
AR=ar
|
||||
INSTALL=install
|
||||
|
||||
SCRIPTS=git-apply-patch-script git-merge-one-file-script git-prune-script \
|
||||
SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
|
||||
git-pull-script git-tag-script git-resolve-script git-whatchanged \
|
||||
git-deltafy-script git-fetch-script git-status-script git-commit-script
|
||||
git-deltafy-script git-fetch-script git-status-script git-commit-script \
|
||||
git-log-script
|
||||
|
||||
PROG= git-update-cache git-diff-files git-init-db git-write-tree \
|
||||
git-read-tree git-commit-tree git-cat-file git-fsck-cache \
|
||||
|
|
4
git
Executable file
4
git
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
cmd="git-$1-script"
|
||||
shift
|
||||
exec $cmd "$@"
|
2
git-log-script
Executable file
2
git-log-script
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less}
|
Loading…
Reference in a new issue