Re: [PATCH 2/2] git-add -a: add all files
- From
- Lars Noschinski <lars-2008-1@usenet.noschinski.de>
- Date
- Jul 20, 2008, 20:46 UTC
- Message-ID
- <20080720204647.GA31432@lars.home.noschinski.de>
- In-Reply-To
- <7v4p6k8l36.fsf@gitster.siamese.dyndns.org>
* Junio C Hamano <gitster@pobox.com> [08-07-20 20:30]:
>So for such people who would find "add -A" useful, "commit -a" will not be >"unrelated changes in the same commit". And for such people, I would even >say "commit -A" would be even more useful, too.
There is one occasion I could use a "add -A": To shorten
git add -u; git add .; git commit -m "wip"; git checkout $stuff
So in my opinion, if one wants a "stage my whole workdir" option, it would be suited best as an option to commit (and maybe stash).