Hi,

I'm combining my replies to #402539 and #427429 as they both relate to
debcommit's use of "git-diff --cached".

As Junichi pointed out, debcommit's current behaviour with respect to
git is inconsistent; specifically, it uses "git-diff --cached" followed
by "git commit -a". I've modified the script to remove the default use
of "-a" and added an "--allfiles" option which uses "git-diff HEAD, git
commit -a" as suggested by Jamey and Josh.

The updated script (and generated manpage) is available at
http://people.alioth.debian.org/~adam-guest/. I'm not a git user so any
comments and testing would be greatly appreciated.

(One thing I wasn't sure about was which command to recommend for
ensuring that git is aware of files when using --cached. #402539
suggests "git-update-index" whereas #427429 uses "git-add").

Cheers,

Adam


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

Reply via email to