From e764b8e8b3c50b131be825532ba26fa346d6586e Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 1 Jun 2005 09:13:26 -0700 Subject: [PATCH] Add "git" and "git-log-script" helper scripts. The "git" script is just shorthand: "git xyz " will just execute "git-xyz-script ", 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 | 5 +++-- git | 4 ++++ git-log-script | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100755 git create mode 100755 git-log-script diff --git a/Makefile b/Makefile index a320a8814..a5e7552e1 100644 --- a/Makefile +++ b/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 \ diff --git a/git b/git new file mode 100755 index 000000000..c201c60ae --- /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 new file mode 100755 index 000000000..317aa9b0d --- /dev/null +++ b/git-log-script @@ -0,0 +1,2 @@ +#!/bin/sh +git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less} -- 2.26.2