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

Re: Moving a file back to an earlier revision.

From
David Ho <davidkwho@gmail.com>
Date
Mar 31, 2006, 22:03 UTC
Message-ID
<4dd15d180603311403o1f78ee56j707346e887463168@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.64.0603311324040.27203@g5.osdl.org>
On 3/31/06, Linus Torvalds <torvalds@osdl.org> wrote:
Show 9 quoted lines
> Don't revert.
>
> Just pick the point you want to start testing his patch at (with gitk, for
> example, just cut-and-paste the sha1), and do
>
>         git checkout -b test-better-fix <sha1>
>
> which creates a new branch ("test-better-fix") that starts at that point,
> and checks it out.

I forget to mention I have also in my branch changes necessary to run on my board. So what I did was

git-branch test-better-fix my-branch git-checkout test-better-fix git-diff commit(my-fixes)..commit(original) filename | git-apply git-commit

Show 7 quoted lines
>
> Then, just apply the patch, and off you go. You now have _both_ his patch
> and your own series in separate branches, so you can cherry-pick and do
> other things (like do a "diff" between branches - which can sometimes be
> useful too to verify that the two branches end up fixing all the same
> problems).
>
Yes, good point.
Thanks, David
Previous: Linus TorvaldsNext: David Ho
Message 3 of 8 in “Moving a file back to an earlier revision.”
  1. David HoMar 31, 2006
  2. Linus TorvaldsMar 31, 2006
  3. David HoMar 31, 2006
  4. David HoMar 31, 2006
  5. Junio C HamanoMar 31, 2006
  6. David HoMar 31, 2006
  7. Karl HasselströmApr 3, 2006
  8. Petr BaudisApr 1, 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.