git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* suggestion for git rebase -i
@ 2007-07-28  4:58 Seth Falcon
  2007-07-28  8:43 ` Johannes Schindelin
  0 siblings, 1 reply; 7+ messages in thread
From: Seth Falcon @ 2007-07-28  4:58 UTC (permalink / raw)
  To: git

The tempfile used by git rebase -i is called "todo".  For those using
something like emacsclient, this is a bit too generic for the name of
a file in a pre-existing editor session.  I realize this is a small
nit, but how about renaming the file to "git-rebase-todo"?

+ seth

-- 
Seth Falcon | Computational Biology | Fred Hutchinson Cancer Research Center
BioC: http://bioconductor.org/
Blog: http://userprimary.net/user/

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

* Re: suggestion for git rebase -i
  2007-07-28  4:58 suggestion for git rebase -i Seth Falcon
@ 2007-07-28  8:43 ` Johannes Schindelin
  2007-07-28  8:45   ` Jeff King
  2007-07-28 15:52   ` Seth Falcon
  0 siblings, 2 replies; 7+ messages in thread
From: Johannes Schindelin @ 2007-07-28  8:43 UTC (permalink / raw)
  To: Seth Falcon; +Cc: git

Hi,

On Fri, 27 Jul 2007, Seth Falcon wrote:

> The tempfile used by git rebase -i is called "todo".  For those using
> something like emacsclient, this is a bit too generic for the name of
> a file in a pre-existing editor session.  I realize this is a small
> nit, but how about renaming the file to "git-rebase-todo"?

Why?  This is an implementation detail, and should not concern the user.

However, I was thinking about adding a "git rebase --status" to show where 
you are, but that will have to be implemented by someone else, or it has 
to wait a little.

Ciao,
Dscho

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

* Re: suggestion for git rebase -i
  2007-07-28  8:43 ` Johannes Schindelin
@ 2007-07-28  8:45   ` Jeff King
  2007-07-28  8:58     ` Jeff King
  2007-07-28 15:52   ` Seth Falcon
  1 sibling, 1 reply; 7+ messages in thread
From: Jeff King @ 2007-07-28  8:45 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Seth Falcon, git

On Sat, Jul 28, 2007 at 09:43:15AM +0100, Johannes Schindelin wrote:

> > a file in a pre-existing editor session.  I realize this is a small
> > nit, but how about renaming the file to "git-rebase-todo"?
> 
> Why?  This is an implementation detail, and should not concern the user.

Because if you want to setup macros or syntax highlighting specific to
editing git-rebase tempfiles, then you have to figure out somehow that
you are editing one. Using a more informative name for the tempfile
means that you can guess based on the filename.

-Peff

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

* Re: suggestion for git rebase -i
  2007-07-28  8:45   ` Jeff King
@ 2007-07-28  8:58     ` Jeff King
  0 siblings, 0 replies; 7+ messages in thread
From: Jeff King @ 2007-07-28  8:58 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Seth Falcon, git

On Sat, Jul 28, 2007 at 04:45:51AM -0400, Jeff King wrote:

> > > a file in a pre-existing editor session.  I realize this is a small
> > > nit, but how about renaming the file to "git-rebase-todo"?
> > 
> > Why?  This is an implementation detail, and should not concern the user.
> 
> Because if you want to setup macros or syntax highlighting specific to
> editing git-rebase tempfiles, then you have to figure out somehow that
> you are editing one. Using a more informative name for the tempfile
> means that you can guess based on the filename.

Re-reading his original message, I actually don't think this is what he
wanted it for. But I think it's reasonable to give the tempfile a
meaningful name anyway for this reason.

-Peff

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

* Re: suggestion for git rebase -i
  2007-07-28  8:43 ` Johannes Schindelin
  2007-07-28  8:45   ` Jeff King
@ 2007-07-28 15:52   ` Seth Falcon
  2007-07-28 20:09     ` Johannes Schindelin
  1 sibling, 1 reply; 7+ messages in thread
From: Seth Falcon @ 2007-07-28 15:52 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Seth Falcon, git

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Why?  This is an implementation detail, and should not concern the
> user.

In the context of an existing editing session, the name of the
tempfile is visible and relevant to the user (not just an
implementation detail).  For example, the tempfile name is useful when
multi-tasking and one needs to get back to the buffer.  As another
reply pointed out, the name could also be used for editor mode
customization.

So.  When editing a commit message, the buffer is named
COMMIT_EDITMSG.  When editing a rebase -i buffer it is named todo.  Is
this a real problem?  Of course not.  But I think a slightly more
descriptive name makes sense -- especially if other commands gain
interactive modes and a user might have a number of them going at once
(in different repos, e.g.).

+ seth

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

* Re: suggestion for git rebase -i
  2007-07-28 15:52   ` Seth Falcon
@ 2007-07-28 20:09     ` Johannes Schindelin
  2007-07-28 23:11       ` Seth Falcon
  0 siblings, 1 reply; 7+ messages in thread
From: Johannes Schindelin @ 2007-07-28 20:09 UTC (permalink / raw)
  To: Seth Falcon; +Cc: git

Hi,

On Sat, 28 Jul 2007, Seth Falcon wrote:

> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> > Why?  This is an implementation detail, and should not concern the
> > user.
> 
> In the context of an existing editing session, the name of the tempfile 
> is visible and relevant to the user (not just an implementation detail).  
> For example, the tempfile name is useful when multi-tasking and one 
> needs to get back to the buffer.  As another reply pointed out, the name 
> could also be used for editor mode customization.

Okay, fair enough.  But since you want that feature, you get to do the 
patch.  Hint: it is just one line that has to be changed.

Ciao,
Dscho

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

* Re: suggestion for git rebase -i
  2007-07-28 20:09     ` Johannes Schindelin
@ 2007-07-28 23:11       ` Seth Falcon
  0 siblings, 0 replies; 7+ messages in thread
From: Seth Falcon @ 2007-07-28 23:11 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: Seth Falcon, git

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Okay, fair enough.  But since you want that feature, you get to do the 
> patch.  Hint: it is just one line that has to be changed.

Heh, I actually wrote the patch first, but thought it was so
trivial...  :-)

ok, I will send the patch and hopefully not screw up the formatting,
etc.  Feedback and hints welcome.

+ seth

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

end of thread, other threads:[~2007-07-28 23:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-28  4:58 suggestion for git rebase -i Seth Falcon
2007-07-28  8:43 ` Johannes Schindelin
2007-07-28  8:45   ` Jeff King
2007-07-28  8:58     ` Jeff King
2007-07-28 15:52   ` Seth Falcon
2007-07-28 20:09     ` Johannes Schindelin
2007-07-28 23:11       ` Seth Falcon

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).