git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GUILT] Use git_editor
@ 2008-09-30 18:43 Alan Jenkins
  2008-09-30 19:07 ` Josef 'Jeff' Sipek
  2008-10-01  2:31 ` Josef 'Jeff' Sipek
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Jenkins @ 2008-09-30 18:43 UTC (permalink / raw)
  To: Josef 'Jeff' Sipek; +Cc: git

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>

diff --git a/guilt b/guilt
index 1cef7b9..8d023e9 100755
--- a/guilt
+++ b/guilt
@@ -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"
diff --git a/guilt-header b/guilt-header
index da46c82..66521ac 100755
--- a/guilt-header
+++ b/guilt-header
@@ -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~"
 
 	(
diff --git a/guilt-new b/guilt-new
index 05318a5..7845d00 100755
--- a/guilt-new
+++ b/guilt-new
@@ -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
 	(
diff --git a/guilt-series b/guilt-series
index 7d8f8e9..4f24ffd 100755
--- a/guilt-series
+++ b/guilt-series
@@ -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)`

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [GUILT] Use git_editor
  2008-09-30 18:43 [GUILT] Use git_editor Alan Jenkins
@ 2008-09-30 19:07 ` Josef 'Jeff' Sipek
  2008-09-30 19:14   ` Alan Jenkins
  2008-10-01  2:31 ` Josef 'Jeff' Sipek
  1 sibling, 1 reply; 5+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-09-30 19:07 UTC (permalink / raw)
  To: Alan Jenkins; +Cc: git

On Tue, Sep 30, 2008 at 07:43:50PM +0100, Alan Jenkins wrote:
> Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
> 
> diff --git a/guilt b/guilt
> index 1cef7b9..8d023e9 100755
> --- a/guilt
> +++ b/guilt
> @@ -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.

-- 
Bad pun of the week: The formula 1 control computer suffered from a race
condition

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [GUILT] Use git_editor
  2008-09-30 19:07 ` Josef 'Jeff' Sipek
@ 2008-09-30 19:14   ` Alan Jenkins
  2008-09-30 20:22     ` Josef 'Jeff' Sipek
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Jenkins @ 2008-09-30 19:14 UTC (permalink / raw)
  To: Josef 'Jeff' Sipek; +Cc: git

Josef 'Jeff' Sipek wrote:
> On Tue, Sep 30, 2008 at 07:43:50PM +0100, Alan Jenkins wrote:
>   
>> Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
>>
>> diff --git a/guilt b/guilt
>> index 1cef7b9..8d023e9 100755
>> --- a/guilt
>> +++ b/guilt
>> @@ -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.
>   

Not in git-sh-setup.  I did check :-).

Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [GUILT] Use git_editor
  2008-09-30 19:14   ` Alan Jenkins
@ 2008-09-30 20:22     ` Josef 'Jeff' Sipek
  0 siblings, 0 replies; 5+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-09-30 20:22 UTC (permalink / raw)
  To: Alan Jenkins; +Cc: git

On Tue, Sep 30, 2008 at 08:14:15PM +0100, Alan Jenkins wrote:
> Josef 'Jeff' Sipek wrote:
> > On Tue, Sep 30, 2008 at 07:43:50PM +0100, Alan Jenkins wrote:
> >   
> >> Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
> >>
> >> diff --git a/guilt b/guilt
> >> index 1cef7b9..8d023e9 100755
> >> --- a/guilt
> >> +++ b/guilt
> >> @@ -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.
> 
> 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.

-- 
Failure is not an option,
It comes bundled with your Microsoft product.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [GUILT] Use git_editor
  2008-09-30 18:43 [GUILT] Use git_editor Alan Jenkins
  2008-09-30 19:07 ` Josef 'Jeff' Sipek
@ 2008-10-01  2:31 ` Josef 'Jeff' Sipek
  1 sibling, 0 replies; 5+ messages in thread
From: Josef 'Jeff' Sipek @ 2008-10-01  2:31 UTC (permalink / raw)
  To: Alan Jenkins; +Cc: git

On Tue, Sep 30, 2008 at 07:43:50PM +0100, Alan Jenkins wrote:
> Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>

Applied.

Thanks,

Josef 'Jeff' Sipek.

-- 
Don't drink and derive. Alcohol and algebra don't mix.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-01  2:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 18:43 [GUILT] Use git_editor Alan Jenkins
2008-09-30 19:07 ` Josef 'Jeff' Sipek
2008-09-30 19:14   ` Alan Jenkins
2008-09-30 20:22     ` Josef 'Jeff' Sipek
2008-10-01  2:31 ` Josef 'Jeff' Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).