Use git_editor
Signed-off-by Alan Jenkins <[email protected]>
guilt +0 -4
@@ -693,10 +693,6 @@ fi series="$GUILT_DIR/$branch/series" applied="$GUILT_DIR/$branch/status" -# determine an editor to use for anything interactive (fall back to vi) -editor="vi" -[ ! -z "$EDITOR" ] && editor="$EDITOR" - # determine a pager to use for anything interactive (fall back to more) pager="more" [ ! -z "$PAGER" ] && pager="$PAGER"
guilt-header +1 -1
@@ -46,7 +46,7 @@ if [ -z "$edit" ]; then else do_get_full_header "$GUILT_DIR/$branch/$patch" > "$TMP_MSG" do_get_patch "$GUILT_DIR/$branch/$patch" > "$TMP_DIFF" - $editor "$TMP_MSG" + git_editor "$TMP_MSG" mv "$GUILT_DIR/$branch/$patch" "$GUILT_DIR/$branch/$patch~" (
guilt-new +1 -1
@@ -77,7 +77,7 @@ mkdir_dir=`dirname "$GUILT_DIR/$branch/$patch"` ) >> "$GUILT_DIR/$branch/$patch" # edit -e ? -[ "$edit" = "t" ] && $editor "$GUILT_DIR/$branch/$patch" +[ "$edit" = "t" ] && git_editor "$GUILT_DIR/$branch/$patch" if [ ! -z "$force" ]; then (
guilt-series +1 -1
@@ -22,7 +22,7 @@ do done if [ ! -z "$edit" ]; then - $editor "$series" + git_editor "$series" elif [ ! -z "$gui" ]; then [ -z "`get_top`" ] && die "No patches applied." bottom=`git rev-parse refs/patches/$branch/$(head -1 $applied)`
Quoted 7 lines · Alan Jenkins
Signed-off-by Alan Jenkins <[email protected]>guilt +0
-0
guilt fi · line 699
Quoted 7 lines
guilt +0
-4@@ -693,10 +693,6 @@ fi series="$GUILT_DIR/$branch/series" applied="$GUILT_DIR/$branch/status" -# determine an editor to use for anything interactive (fall back to vi) -editor="vi" -[ ! -z "$EDITOR" ] && editor="$EDITOR" -
Looks good from a quick glance. Any chance there's a git_pager?
Josef 'Jeff' Sipek.
Signature · 2 lines
Bad pun of the week: The formula 1 control computer suffered from a race condition
Quoted 20 lines · Josef 'Jeff' Sipek
Quoted 7 lines · Alan Jenkins
Signed-off-by Alan Jenkins <[email protected]>guilt +0
-0guilt fi · line 696
Quoted 8 lines
guilt +0
-4@@ -693,10 +693,6 @@ fi series="$GUILT_DIR/$branch/series" applied="$GUILT_DIR/$branch/status" -# determine an editor to use for anything interactive (fall back to vi) -editor="vi" -[ ! -z "$EDITOR" ] && editor="$EDITOR" -Looks good from a quick glance. Any chance there's a
git_pager?
Quoted 2 lines
Josef 'Jeff' Sipek.
Not in git-sh-setup. I did check :-).
Alan
Quoted 21 lines · Alan Jenkins
Quoted 20 lines · Josef 'Jeff' Sipek
Quoted 7 lines · Alan Jenkins
Signed-off-by Alan Jenkins <[email protected]>guilt +0
-0guilt fi · line 696
Quoted 8 lines
guilt +0
-4@@ -693,10 +693,6 @@ fi series="$GUILT_DIR/$branch/series" applied="$GUILT_DIR/$branch/status" -# determine an editor to use for anything interactive (fall back to vi) -editor="vi" -[ ! -z "$EDITOR" ] && editor="$EDITOR" -Looks good from a quick glance. Any chance there's a
git_pager?
Quoted 3 lines
Quoted 1 line
Josef 'Jeff' Sipek.
Not in git-sh-setup. I did check :-).
Interesting! There are definitely places in git that invoke _a_ pager...maybe there's a patch to git that need creating :)
Josef 'Jeff' Sipek.
Signature · 2 lines
Failure is not an option, It comes bundled with your Microsoft product.
Josef 'Jeff' Sipek
AppliedQuoted 1 line · Alan Jenkins
Signed-off-by Alan Jenkins <[email protected]>
Applied.
Thanks,
Josef 'Jeff' Sipek.
Signature · 1 line
Don't drink and derive. Alcohol and algebra don't mix.