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

Re: [PATCH] rebase -p: seed first commit in case it's before the merge bases.

From
Stephen Haberman <stephen@exigencecorp.com>
Date
Jan 18, 2009, 00:11 UTC
Message-ID
<20090117181146.906a6bf3.stephen@exigencecorp.com>
In-Reply-To
<alpine.DEB.1.00.0901180041540.3586@pacific.mpi-cbg.de>
Show 18 quoted lines
> > +			# Along with the merge bases, look at the first commit's
> > +			# parent (which may be before the merge base) and mark it
> > +			# as rewritten to ONTO
> > +			FIRST="$(git rev-list --reverse --first-parent $UPSTREAM..$HEAD | head -n 1)"
> > +			for p in $(git rev-list --parents -1 $FIRST | cut -d' ' -f2)
> > +			do
> > +				echo $ONTO > "$REWRITTEN/$p"
> > +			done
> 
> AFAICT this is wrong.  You have no guarantee whatsoever that the output of
> 
> 	$ git rev-list --reverse --first-parent $UPSTREAM..$HEAD | head -n 1
> 
> has any parents at all.  Take for example a coolest-merge-ever, i.e. a 
> merge of an independent project.
> 
> Instead, what you _actually_ are looking for are the boundary objects
> of $UPSTREAM..$HEAD,
Agreed.
> which would be easy to get at.

That would be great, but I'm not seeing it, obviously. Suggestions would be appreciated.

> However, I have a strong feeling that just piling onto the current
> code will not fix the underlying issues.
Also agreed.

So...not that it really matters, but did my patches go out to the git list or not? It looks like both Johannes and I got them from the cc entries.

I tried to use format-patch and the files looked great, cc's including Michael, Stephan, and Sitaram. Then I ran send-email with the three files as arguments and it stripped all the cc's but Johannes and myself. Then I got all three delivered due to my cc entry, but I didn't see any entries arrive from the list even though the cc-delivered copies all had "To: git@vger.kernel.org" in them (and that is what I had pasted into the send-email prompt). I guess I did something wrong but it's frustrating to not know what it was.

- Stephen
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 25 of 28 in “rebase -p confusion in 1.6.1”
  1. Sitaram ChamartyJan 15, 2009
  2. Johannes SchindelinJan 15, 2009
  3. Sitaram ChamartyJan 15, 2009
  4. Stephan BeyerJan 15, 2009
  5. Sitaram ChamartyJan 15, 2009
  6. Stephan BeyerJan 15, 2009
  7. Johannes SchindelinJan 15, 2009
  8. Sitaram ChamartyJan 15, 2009
  9. Michael J GruberJan 15, 2009
  10. Stephan BeyerJan 15, 2009
  11. Michael J GruberJan 15, 2009
  12. Johannes SchindelinJan 15, 2009
  13. Michael J GruberJan 15, 2009
  14. Johannes SchindelinJan 15, 2009
  15. Sitaram ChamartyJan 15, 2009
  16. Johannes SchindelinJan 15, 2009
  17. Sitaram ChamartyJan 15, 2009
  18. Michael J GruberJan 15, 2009
  19. Johannes SchindelinJan 15, 2009
  20. Stephan BeyerJan 15, 2009
  21. Johannes SchindelinJan 15, 2009
  22. Sitaram ChamartyJan 15, 2009
  23. Johannes SchindelinJan 17, 2009
  24. Johannes SchindelinJan 17, 2009
  25. Stephen HabermanJan 18, 2009
  26. Johannes SchindelinJan 18, 2009
  27. Stephen HabermanJan 18, 2009
  28. Stephen HabermanJan 18, 2009

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.