git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-add: allow path limiting with -u

From
Jakub Narebski <jnareb@gmail.com>
Date
May 13, 2007, 10:35 UTC
Message-ID
<200705131235.25281.jnareb@gmail.com>
In-Reply-To
<20070512064159.GA7471@coredump.intra.peff.net>
On Sat, 12 May 2007, Jeff King wrote:
Show 11 quoted lines
> Rather than updating all working tree paths, we limit
> ourselves to paths listed on the command line.
> 
> Signed-off-by: Jeff King <peff@peff.net>
> ---
> This turned out to be quite easy to implement. Patch is slightly larger
> than necessary due to removing _all_ from the variable names, but I
> think that better expresses the new functionality.
> 
> I'm not sure that the documentation needs updated at all; I had just
> assumed after reading it that 'git-add -u foo' would DWIM.

Do git-add *needs* path specifier (even if it is '.') also for `-u'? The changes in documentation were to reflect that `-u' is incompatibile with explicit paths, or that `-u' does not require explicit paths contrary to git-add without `-u'.

The fact that "add --interactive does not take any parameters" is separate issue (which, accidentally, was adressed in the same patch).

-- 
Jakub Narebski
Poland
Previous: Junio C HamanoNext: Jeff King
Message 3 of 9 in “git-add: allow path limiting with -u”
  1. git-add: allow path limiting with -uJeff King, May 12, 2007
  2. Junio C HamanoMay 12, 2007
  3. Jakub NarebskiMay 13, 2007
  4. Jeff KingMay 14, 2007
  5. Jakub NarebskiMay 14, 2007
  6. Jeff KingMay 14, 2007
  7. Junio C HamanoMay 14, 2007
  8. Jeff KingMay 14, 2007
  9. Junio C HamanoMay 14, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.