Package: git
Version: 1:1.7.2
Severity: wishlist
Tags: upstream
Forwarded: 
http://thread.gmane.org/gmane.linux.debian.devel.bugs.general/698001/focus=145662

Jakub Narebski writes:

> On a bit unrelated note what I'd like to have is 'git commit -a'
> (optional) safety against accidentally getting rid of staged changes.
>
> I'd like for 'git commit -a' to *fail* if there are staged changes for
> tracked files, excluding added, removed and renamed files.  If you
> have some staged changes you would get an error message:
>
>   $ git add tracked-file
>   $ git commit -a
>   fatal: There are staged changes to tracked files
>   hint: To commit staged changes, use 'git commit'
>   hint: To commit all changes, use 'git commit -f -a'
>
> Perhaps this behavior would be turned on only if some config option,
> like commit.preserveIndex or something like that is set to true...

I wholeheartedly agree.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to