Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Michael Witten <mfwitten@...>
Cc: <git@...>
Date: Sunday, October 14, 2007 - 9:25 am

Michael Witten <mfwitten@MIT.EDU> writes:


I don't find the option set very intuitive. I'd prefer

  - git add -u . => update the current directory as before
  - git add -u   => update all files from the root.

But your solution has the advantage of being backward compatible, so,
no strong opinion here.

(side note: also, while you're here, it would be nice to have a single
command to do "git add .; git add -u", i.e add all unknown files,
update all existing files, and actally remove all deleted files. In
one word, synchronize the index with the working tree completely.
Perhaps "-a" would be a good name for that, not sure)



Your patch is whitespace-damaged. I don't know how to fix that for
Apple Mail, but git-send-email can help.


You should document -a here, and in Documentation/git-add.txt if you
introduce it.

-- 
Matthieu
-
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:
[PATCH] git-add (-a|-u) and -n support, Michael Witten, (Sun Oct 14, 6:26 am)
Re: [PATCH] git-add (-a|-u) and -n support, Jeff King, (Mon Oct 15, 12:20 am)
Re: [PATCH] git-add (-a|-u) and -n support, Michael Witten, (Mon Oct 15, 5:09 am)
Re: [PATCH] [BUG FIXED] git-add (-a|-u) and -n support, Michael Witten, (Sun Oct 14, 8:11 am)
Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support, Michael Witten, (Sun Oct 14, 8:24 am)
Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support, Matthieu Moy, (Sun Oct 14, 9:25 am)
Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support, Michael Witten, (Sun Oct 14, 6:00 pm)
Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support, Michael Witten, (Mon Oct 15, 10:47 am)
Re: [PATCH] [BUG FIXED 2] git-add (-a|-u) and -n support, Johannes Schindelin, (Mon Oct 15, 10:54 am)