git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFE/RFC] format-patch/diff via path
@ 2018-01-20  6:26 Randall S. Becker
  2018-01-20  7:14 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Randall S. Becker @ 2018-01-20  6:26 UTC (permalink / raw)
  To: 'git mailing list'

I’m still a bit perplexed by some behaviour seen today, and am looking for a clean way to deal with it that the documentation does not make clear. So, I’m asking in a different way. Suppose a graph of

A---B---C---D---E
\      \               /
  \----F—G----/

When trying to perform a format-patch from B to E, I was seeing commits B-A-F-G-E rather than what I wanted B-C-D-E.  F and G were younger commits than C and D, which I assume (very likely wrongly) is why diff was giving preferential treatment to that path.

What I am trying to figure out is whether there is a clean way to force format-patch along the B-C-D-E path. If not, would it be worth starting up a small project to make this possible (not knowing exactly where to start), but I would envision something like: git format-patch –via=C B..E

I may be just missing something obvious (new to format-patch operations myself). 

Cheers,
Randall
P.S. Bad ideas happen when tests run for a long time 😉


-- Brief whoami:
  NonStop developer since approximately NonStop(211288444200000000)
  UNIX developer since approximately 421664400
-- In my real life, I talk too much.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-20  7:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-20  6:26 [RFE/RFC] format-patch/diff via path Randall S. Becker
2018-01-20  7:14 ` Junio C Hamano
2018-01-20  7:41   ` Randall S. Becker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).