Skip to content

Commit 1ea9f9d

Browse files
committed
Merge branch 'maint'
* maint: git-am.txt: advertise 'git am --abort' instead of 'rm .git/rebase-apply' bisect: visualize with git-log if gitk is unavailable
2 parents c2e86ad + b5f306f commit 1ea9f9d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

Documentation/git-am.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ aborts in the middle. You can recover from this in one of two ways:
173173
the index file to bring it into a state that the patch should
174174
have produced. Then run the command with the '--resolved' option.
175175

176-
The command refuses to process new mailboxes while the `.git/rebase-apply`
177-
directory exists, so if you decide to start over from scratch,
178-
run `rm -f -r .git/rebase-apply` before running the command with mailbox
176+
The command refuses to process new mailboxes until the current
177+
operation is finished, so if you decide to start over from scratch,
178+
run `git am --abort` before running the command with mailbox
179179
names.
180180

181181
Before any patches are applied, ORIG_HEAD is set to the tip of the

git-bisect.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,12 @@ bisect_visualize() {
288288

289289
if test $# = 0
290290
then
291-
case "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" in
292-
'') set git log ;;
293-
set*) set gitk ;;
294-
esac
291+
if test -n "${DISPLAY+set}${SESSIONNAME+set}${MSYSTEM+set}${SECURITYSESSIONID+set}" &&
292+
type gitk >/dev/null 2>&1; then
293+
set gitk
294+
else
295+
set git log
296+
fi
295297
else
296298
case "$1" in
297299
git*|tig) ;;

0 commit comments

Comments
 (0)