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

Re: What's cooking in git.git (Aug 2011, #07; Wed, 24)

From
Jeff King <peff@peff.net>
Date
Aug 31, 2011, 02:20 UTC
Message-ID
<20110831022017.GA3340@sigill.intra.peff.net>
In-Reply-To
<7vhb55i11i.fsf@alter.siamese.dyndns.org>
On Thu, Aug 25, 2011 at 03:22:49PM -0700, Junio C Hamano wrote:
Show 20 quoted lines
> > On Wed, Aug 24, 2011 at 05:09:09PM -0700, Junio C Hamano wrote:
> >
> >> * jk/add-i-hunk-filter (2011-07-27) 5 commits
> >>   (merged to 'next' on 2011-08-11 at 8ff9a56)
> >>  + add--interactive: add option to autosplit hunks
> >>  + add--interactive: allow negatation of hunk filters
> >>  + add--interactive: allow hunk filtering on command line
> >>  + add--interactive: factor out regex error handling
> >>  + add--interactive: refactor patch mode argument processing
> >> 
> >> Needs documentation updates.
> >
> > I think Duy already mentioned this, but you may want to update your
> > "what's cooking" note: it needs not just doc updates, but code to
> > actually pass the options along from real git commands that use
> > add--interactive, like add, checkout, reset, and stash.
> 
> Thanks. Also tests are lacking, too. Although I do not necessarily see the
> lack of integration with anything but "add" a show-stopper (I consider
> "-p" to chekout, reset and stash are "nice to have"), [...]

It is less ready than that. You cannot even use it from "git add" at this point. It is _only_ the perl bits, as I was just providing them to Duy, so he could write the C bits. So the patches as they are are useless. Hence no tests, since you can't even trigger the code without artifically calling add--interactive directly with the new options.

So it probably makes sense to just drop them (or just leave them in pu) for the next cycle until the other half materializes.

> you are correct that "add -i" and then choosing '[p]atch' gets very
> confused with

Hmm, that is a regression probably caused by my refactoring. Thanks for pointing it out. I'll take a look.

Show 10 quoted lines
> >> The initial "tag --contains" de-pessimization without need for generation
> >> numbers is already in; backburnered.
> >
> > So...what next? I don't really like leaving the contains traversal
> > as-is.
> 
> Hmm, honestly speaking, I do not see much problem with it. My knee-jerk
> reaction is to go with 1.a and if we really want to do something 1.b
> perhaps but I suspect "these are bogus" cache wouldn't be so useful by
> itself and we may need a bit more information.

OK. I'll clean up and submit a patch for that, but I'll wait for post-1.7.7.

-Peff
Previous: Ted ZlatanovNext: Jeff King
Message 6 of 13 in “What's cooking in git.git (Aug 2011, #07; Wed, 24)”
  1. Junio C HamanoAug 25, 2011
  2. Michael HaggertyAug 25, 2011
  3. Jeff KingAug 25, 2011
  4. Junio C HamanoAug 25, 2011
  5. credential helpers (was: What's cooking in git.git (Aug 2011, #07; Wed, 24))Ted Zlatanov, Aug 26, 2011
  6. Jeff KingAug 31, 2011
  7. git credential helper design [was: What's cooking in git.git (Aug 2011, #07; Wed, 24)]Jeff King, Aug 31, 2011
  8. John SzakmeisterSep 9, 2011
  9. Jeff KingSep 10, 2011
  10. John SzakmeisterSep 13, 2011
  11. Ted ZlatanovSep 15, 2011
  12. Heiko VoigtAug 25, 2011
  13. Junio C HamanoAug 25, 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.