[Bug] git add -i fails in multiple ways prior to first commit.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rhodes, Kate
Date: Monday, February 11, 2008 - 5:59 pm

$ git init
$ touch foo.txt
$ git add foo.txt
$ git add -i
fatal: bad revision 'HEAD'
            staged     unstaged path


*** Commands ***
   1: [s]tatus	  2: [u]pdate	  3: [r]evert	  4: [a]dd untracked
   5: [p]atch	  6: [d]iff	  7: [q]uit	  8: [h]elp
What now>


* status fails to report the current status
* update fails to work at all
* revert fails to work (not that there should be anything to revert  
but it shouldn't return a "fatal: bad revision 'HEAD'" message.
* add untracked works
* patch works
* diff fails
* help returns instructions that are incorrect owing to the fact that  
half of the things don't work in this state.
* quit, thankfully, works. :)


Why this is important:
git add's interactive mode is intended to make things easier, thus it  
stands to reason that people new to git are going to want to use it.  
Presenting them with so many broken commands so early on is,  
obviously, a really bad idea.

-masukomi
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[Bug] git add -i fails in multiple ways prior to first commit., Rhodes, Kate, (Mon Feb 11, 5:59 pm)
Re: [PATCH] add--interactive: handle initial commit better, Johannes Schindelin, (Wed Feb 13, 5:19 am)
Re: [PATCH] add--interactive: handle initial commit better, Jakub Narebski, (Wed Feb 13, 6:11 am)
Re: [PATCH] add--interactive: handle initial commit better, Johannes Schindelin, (Wed Feb 13, 6:22 am)
Re: [PATCH] add--interactive: handle initial commit better, Johannes Schindelin, (Wed Feb 13, 6:45 am)