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

Re: What's cooking in git.git (Mar 2011, #06; Thu, 31)

From
Jeff King <peff@peff.net>
Date
Apr 1, 2011, 17:06 UTC
Message-ID
<20110401170610.GA23014@sigill.intra.peff.net>
In-Reply-To
<7vbp0phpmx.fsf@alter.siamese.dyndns.org>
On Fri, Apr 01, 2011 at 10:01:42AM -0700, Junio C Hamano wrote:
Show 14 quoted lines
> >> * jc/add-u-migration (2011-03-22) 3 commits
> >>  - add: make "add -u/-A" update full tree without pathspec (step 3)
> >>  - add: make "add -u/-A" update full tree without pathspec (step 2)
> >>   (merged to 'next' on 2011-03-31 at 962e058)
> >>  + add: make "add -u/-A" update full tree without pathspec
> [...]
> > I have been meaning to look closer at this. Were you wanting to get the
> > first stage of the transition into 1.7.5?
> 
> I was tempted to but I think it would be far more pleasant if the first
> step were to add the warning against "add -u" without pathspec that is ran
> from a subdirectory to advise "if you meant 'from here', say '.', if you
> meant 'everywhere', say ':/'---for now we pretend you said '.' to match
> the traditional behaviour."
Yes, I think that is definitely the right first step.
Show 11 quoted lines
> It is adding even more confusion to add the "in this repository, 'add -u'
> is tree-wide" configuration variable without giving people who need to
> override that in unfamiliar repositories (read: scripts).
> 
> Right now, we don't have a good advice to force the tree-wide behaviour
> other than "cd $(git rev-parse --show-cdup)/. && git add -u", which is
> quite a mouthful.
> 
> We know how the magic "this pathspec is from the root" should work, and I
> think we even saw "should look like this" patches, but haven't applied to
> any branch so far yet.

That reasoning makes sense. Let's let the :/ patches develop and cook for post-1.7.5, then, and worry about it in the next cycle when we can build on top of them.

-Peff
Previous: Junio C Hamano
Message 13 of 13 in “What's cooking in git.git (Mar 2011, #06; Thu, 31)”
  1. Junio C HamanoMar 31, 2011
  2. Let's make our cycles shorterJunio C Hamano, Mar 31, 2011
  3. Sebastien DoucheApr 25, 2011
  4. Junio C HamanoApr 25, 2011
  5. Sebastien DoucheJun 13, 2011
  6. git diff -D: omit the preimage of deletesMichael J Gruber, Apr 1, 2011
  7. Junio C HamanoApr 1, 2011
  8. Junio C HamanoApr 3, 2011
  9. Junio C HamanoApr 3, 2011
  10. Michael J GruberApr 3, 2011
  11. Jeff KingApr 1, 2011
  12. Junio C HamanoApr 1, 2011
  13. Jeff KingApr 1, 2011

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.