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

Re: Does GIT has vc keywords like CVS/Subversion?

From
Junio C Hamano <junkio@cox.net>
Date
Oct 10, 2006, 17:41 UTC
Message-ID
<7vy7ro2hmu.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0610101005420.3952@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
> Well, it probably wouldn't be too nasty to try to have a "find nearest 
> commit" kind of thing. It's not quite as simple as bisection, but you 
> could probably use a bisection-like algorithm to do something like a 
> binary search to try to guess which tree is the closest. 

I had to do something like that in my day job once. A customer installation was made from a tarball of unknown vintage, and then field patched with later fixes.

I ended up slurping the thing back and populated my index with it. Luckily I could guess a good initial point to find the commit that gives minimum "git diff" output. Then from the remaining patches it was reasonably easy to find out which changes were cherry-picked by hand with "git log master -- $paths".

Previous: Linus Torvalds
Message 12 of 12 in “Does GIT has vc keywords like CVS/Subversion?”
  1. Dongsheng SongOct 9, 2006
  2. Liu YubaoOct 9, 2006
  3. Petr BaudisOct 9, 2006
  4. Linus TorvaldsOct 9, 2006
  5. Martin LanghoffOct 9, 2006
  6. Johannes SchindelinOct 9, 2006
  7. Martin LanghoffOct 9, 2006
  8. Junio C HamanoOct 9, 2006
  9. Rene ScharfeOct 10, 2006
  10. Shawn PearceOct 10, 2006
  11. Linus TorvaldsOct 10, 2006
  12. Junio C HamanoOct 10, 2006

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.