From 6c2833284d84d1128f44dbfd846c81ef93f07a3c Mon Sep 17 00:00:00 2001 From: Doug Maxey Date: Sun, 10 Dec 2006 14:31:46 -0600 Subject: [PATCH 01/11] [PATCH] gitk: add current directory to main window title This can help people keep track of which gitk is which, when they have several on the screen. Signed-off-by: Doug Maxey Signed-off-by: Paul Mackerras --- gitk | 1 + 1 file changed, 1 insertion(+) diff --git a/gitk b/gitk index 3dabc69516..33bac1f3f6 100755 --- a/gitk +++ b/gitk @@ -6293,6 +6293,7 @@ set stuffsaved 0 set patchnum 0 setcoords makewindow +wm title . "[file tail $argv0]: [file tail [pwd]]" readrefs if {$cmdline_files ne {} || $revtreeargs ne {}} { From 5024baa43790bf0ea12905b47c8922e3b256ae61 Mon Sep 17 00:00:00 2001 From: Peter Baumann Date: Tue, 9 Jan 2007 15:30:19 +0100 Subject: [PATCH 02/11] [PATCH] Make gitk work when launched in a subdirectory Make gitk use git-rev-parse --git-dir to find the repository. Signed-off-by: Peter Baumann Signed-off-by: Paul Mackerras --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitk b/gitk index 33bac1f3f6..031c829f26 100755 --- a/gitk +++ b/gitk @@ -12,7 +12,7 @@ proc gitdir {} { if {[info exists env(GIT_DIR)]} { return $env(GIT_DIR) } else { - return ".git" + return [exec git rev-parse --git-dir] } } From 6e2931a8ed887bd75ed68085a7e04bc88574d69e Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Mon, 15 Jan 2007 01:41:22 -0500 Subject: [PATCH 03/11] Use nice names in conflict markers during cherry-pick/revert. Always call the current HEAD 'HEAD', and name the patch being cherry-picked or reverted by its oneline subject rather than its SHA1. This matches git am's behavior and is done because users most commonly are cherry-picking by SHA1 rather than by ref name. Signed-off-by: Shawn O. Pearce Signed-off-by: Junio C Hamano --- git-revert.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git-revert.sh b/git-revert.sh index c74af99a51..bb8f1ca24a 100755 --- a/git-revert.sh +++ b/git-revert.sh @@ -146,6 +146,12 @@ cherry-pick) esac >.msg +eval GITHEAD_$head=HEAD +eval GITHEAD_$next='`git show -s \ + --pretty=oneline --encoding="$encoding" "$commit" | + sed -e "s/^[^ ]* //"`' +export GITHEAD_$head GITHEAD_$next + # This three way merge is an interesting one. We are at # $head, and would want to apply the change between $commit # and $prev on top of us (when reverting), or the change between From 15261e3b33de3b49cc0a7d1b36b8685e02931ad7 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 15 Jan 2007 14:43:03 -0800 Subject: [PATCH 04/11] git reflog expire: document --stale-fix option. Signed-off-by: Junio C Hamano --- Documentation/git-reflog.txt | 2 +- builtin-reflog.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-reflog.txt b/Documentation/git-reflog.txt index 55a24d3266..1138865896 100644 --- a/Documentation/git-reflog.txt +++ b/Documentation/git-reflog.txt @@ -9,7 +9,7 @@ git-reflog - Manage reflog information SYNOPSIS -------- [verse] -'git-reflog' expire [--dry-run] +'git-reflog' expire [--dry-run] [--stale-fix] [--expire=