summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9d97aa6)
raw | patch | inline | side by side (parent: 9d97aa6)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 1 Jun 2005 16:13:26 +0000 (09:13 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 1 Jun 2005 16:13:26 +0000 (09:13 -0700) |
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.
"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.
Makefile | patch | blob | history | |
git | [new file with mode: 0755] | patch | blob |
git-log-script | [new file with mode: 0755] | patch | blob |
diff --git a/Makefile b/Makefile
index a320a88144eb207dc0b68fac3e176331548322ba..a5e7552e10bf50888814d43b1ba1a7276d130ca6 100644 (file)
--- a/Makefile
+++ b/Makefile
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 \
diff --git a/git b/git
--- /dev/null
+++ b/git
@@ -0,0 +1,4 @@
+#!/bin/sh
+cmd="git-$1-script"
+shift
+exec $cmd "$@"
diff --git a/git-log-script b/git-log-script
--- /dev/null
+++ b/git-log-script
@@ -0,0 +1,2 @@
+#!/bin/sh
+git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less}