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

Re: [PATCH] t5533: make it pass on case-sensitive filesystems

From
Jeff King <peff@peff.net>
Date
Aug 8, 2016, 11:21 UTC
Message-ID
<20160808112147.b4ypgazlorlyy752@sigill.intra.peff.net>
In-Reply-To
<alpine.DEB.2.20.1608051613570.5786@virtualbox>
On Fri, Aug 05, 2016 at 04:19:08PM +0200, Johannes Schindelin wrote:
Show 17 quoted lines
> > The fix is meant for jk/push-force-with-lease-creation topic, but I
> > had to find it out by the old fashioned way, i.e. running blame for
> > these lines in 'pu' to find eee98e74f9 is the culprit and then
> > running "git branch --with eee98e74f9".  The only thing the line
> > made easier is I _could_ start the blame at the named commit (which
> > is on 'next') instead of 'pu'.  When I took that "base-commit"
> > series, I was hoping that it would give us a lot more useful
> > information.
> 
> Sorry for that. The way my mail-patch-series.sh script works is that it
> tries to determine which branch between `master`, `next` or `pu` is the
> base (and it then submits *all* commits that are on top of that branch).
> 
> So my branch was indeed based on `next` for that reason, not on
> top of `jk/push-force-with-lease-creation`. Otherwise, I would have
> resubmitted John's patches because the script would have determined that
> my patch is on top of `master`, not on top of `next`.

Do you fetch from the main git.git repository, or Junio's gitster/git workspace on GitHub?

I usually fetch the latter, and then you have all the information you need. So to work on somebody else's existing topic, you can do[1]:

  git checkout jk/push-force-with-lease-creation

which will check out the branch, tracking Junio's version of the topic as your "upstream". Then things like "git rebase -i" just work, and you can extract the patches as @{u}..HEAD.

It does get weird when he picks up your patch but you want to do further work, because you would probably not want to "rebase -i" on top of it (your version of the patch would become obsolete!).

-Peff
[1] I'm assuming you know the topic name. If not, then I usually find
    the commit through the usual archaeology, and then run "git branch
    a --contains" on it (or "for-each-ref" works for that these days,
    and you can restrict it to a pattern matching topic branches).
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 5 in “t5533: make it pass on case-sensitive filesystems”
  1. t5533: make it pass on case-sensitive filesystemsJohannes Schindelin, Aug 4, 2016
  2. Junio C HamanoAug 4, 2016
  3. Johannes SchindelinAug 5, 2016
  4. Jeff KingAug 8, 2016
  5. Johannes SchindelinAug 8, 2016

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.