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

git-svn: Finding the svn-URL of the current branch in git

From
MKMatthias Kleine <matthias_kleine@gmx.de>
Date
Aug 7, 2007, 18:29 UTC
Message-ID
<46B8BA03.1030809@gmx.de>
Hi there,

when running "git-svn dcommit" git-svn tries to find the svn-URL of the current branch int git by looking for the most recent git log-entry corresponding to a commit in svn (see working_head_info in git-svn). In case a merge just happended this might be the URL of another branch. Would using "log --first-parent" instead of a plain "log" take care of this problem or would it have other undesirable consequences?

Regards, Matthias Kleine

Next: Peter Baumann
Message 1 of 15 in “git-svn: Finding the svn-URL of the current branch in git”
  1. Matthias KleineAug 7, 2007
  2. Peter BaumannAug 7, 2007
  3. Matthias KleineAug 8, 2007
  4. Junio C HamanoAug 8, 2007
  5. Matthias KleineAug 8, 2007
  6. Peter BaumannAug 8, 2007
  7. Peter BaumannAug 8, 2007
  8. Eric WongAug 16, 2007
  9. Peter BaumannAug 16, 2007
  10. Eric WongAug 17, 2007
  11. Junio C HamanoAug 17, 2007
  12. Eric WongAug 18, 2007
  13. David KastrupAug 18, 2007
  14. Junio C HamanoAug 18, 2007
  15. Karl HasselströmAug 18, 2007

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.