On 15 Oct 2007, at 10:31:37 AM, Karl Hasselström wrote:
On 2007-10-14 18:00:44 -0400, Michael Witten wrote:
Here's compromise that is backwards compatible. For both git-add and
git-commit:
-a dir [dir2 ...] => all changes in the given dirs.
-a => all changes from the root.
Then we can just leave -u in place for now, and mark it as
deprecated.
In any case, the goal is to make the intuition solid between
git-commit and git-add.
As I recall, Junio had some specific reason for calling the flag -u
instead of -a. Search in the list archive for the patch that
introduced the flag, or wait till he gets back and ask him.
I have a feeling it was because -u currently just updates modified
files in the current directory, while -a updated all modified files.
Fortunately, the suggestion above does not break anything.
Michael Witten
P.S.
When is Junio coming back? I know I know... Look through the
archives. :-P-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html