Skip to content

Commit e764b8e

Browse files
author
Linus Torvalds
committed
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.
1 parent 9d97aa6 commit e764b8e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ CC=gcc
2020
AR=ar
2121
INSTALL=install
2222

23-
SCRIPTS=git-apply-patch-script git-merge-one-file-script git-prune-script \
23+
SCRIPTS=git git-apply-patch-script git-merge-one-file-script git-prune-script \
2424
git-pull-script git-tag-script git-resolve-script git-whatchanged \
25-
git-deltafy-script git-fetch-script git-status-script git-commit-script
25+
git-deltafy-script git-fetch-script git-status-script git-commit-script \
26+
git-log-script
2627

2728
PROG= git-update-cache git-diff-files git-init-db git-write-tree \
2829
git-read-tree git-commit-tree git-cat-file git-fsck-cache \

git

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
cmd="git-$1-script"
3+
shift
4+
exec $cmd "$@"

git-log-script

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less}

0 commit comments

Comments
 (0)