Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-23 10:16:46 +0400
committerJunio C Hamano <junkio@cox.net>2005-08-23 10:18:17 +0400
commitf5e375c9a99d731c05eef701f119da85d62fc158 (patch)
tree36e45b1ec1d2762bdc5b9a1c57eaab97b942d7a4 /git-show-branches-script
parentf76412ed6dbf2f9863115ee38f4198368dbaf7b1 (diff)
Clean-up output from "git show-branch" and document it.
When showing only one branch a lot of default output becomes redundant, so clean it up a bit, and document what is shown. Retire the earlier implementation "git-show-branches-script". Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-show-branches-script')
-rwxr-xr-xgit-show-branches-script61
1 files changed, 0 insertions, 61 deletions
diff --git a/git-show-branches-script b/git-show-branches-script
deleted file mode 100755
index 90018a9e88..0000000000
--- a/git-show-branches-script
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-#
-# Show refs and their recent commits.
-#
-
-. git-sh-setup-script || die "Not a git repository"
-
-usage () {
- die "usage: $0 <ref>..."
-}
-
-headref=`readlink $GIT_DIR/HEAD`
-
-case "$(git-rev-parse --no-revs)" in '') ;; *) usage ;; esac
-revs=$(git-rev-parse --revs-only --symbolic --no-flags "$@")
-flags=$(git-rev-parse --revs-only --flags "$@")
-case "$revs" in
-'')
- revs=$(git-rev-parse --symbolic --all | sed -ne 's|^refs/heads/||p' |
- sort)
- shift ;;
-esac
-set x $revs
-shift
-
-hh= in=
-for ref
-do
- case "/$headref" in
- */"$ref") H='*' ;;
- *) H='!' ;;
- esac
- h=`git-rev-parse --verify "$ref^0" 2>/dev/null` || continue
- l=`git-log-script --max-count=1 --pretty=oneline "$h" |
- sed -e 's/^[^ ]* //'`
- hh="$hh $h"
- echo "$in$H [$ref] $l"
- in="$in "
-done
-set x $hh
-shift
-
-git-rev-list --pretty=oneline $flags $@ |
-while read v l
-do
- in=''
- for h
- do
- b=`git-merge-base $h $v`
- case "$b" in
- $v) in="$in+" ;;
- *) in="$in " ;;
- esac
- done
-
- echo "$in $l"
- case "$in" in
- *' '*) ;;
- *) break ;;
- esac
-done