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

Re: A workflow for local patch maintenance

From
SBStephen Bash <bash@genarts.com>
Date
Oct 11, 2013, 15:30 UTC
Message-ID
<636938755.2020935.1381505453539.JavaMail.root@genarts.com>
In-Reply-To
<20131011151614.GA29226@sigill.intra.peff.net>
----- Original Message -----
Show 22 quoted lines
> From: "Jeff King" <peff@peff.net>
> To: "Stephen Bash" <bash@genarts.com>
> Cc: git@vger.kernel.org, "Tony Finch" <dot@dotat.at>
> Sent: Friday, October 11, 2013 11:16:14 AM
> Subject: Re: A workflow for local patch maintenance
> 
> On Fri, Oct 11, 2013 at 09:22:28AM -0400, Stephen Bash wrote:
> 
> > > To mitigate problem 1, I will sometimes revert a local topic
> > > before doing the upstream merge, if I know it has been reworked.
> > 
> > Peff (slightly off topic) - A coworker of mine actually ran into
> > this problem earlier this week.  Is there recommended way to revert
> > a merged topic branch?  I assume it's essentially reverted each
> > commit introduced by the branch, but is there a convenient
> > invocation of revert?  (easy to remember and hard to screw up)
> 
> If you merged the whole topic in at once, then you can use "git revert
> -m 1 $merge_commit" to undo the merge. If it came in individual
> pieces, then you have to revert each one individually (though if it
> was a series of merges, you can in theory revert each merge in reverse
> order).

Thanks for the pointer. That got me to the right place on the revert manpage, and there I found the link to howto/revert-a-faulty-merge.txt which was extremely helpful.

Thanks! Stephen

Previous: Jeff King
Message 8 of 8 in “A workflow for local patch maintenance”
  1. Tony FinchOct 8, 2013
  2. Jeff KingOct 10, 2013
  3. Tony FinchOct 10, 2013
  4. Jeff KingOct 10, 2013
  5. Jonathan NiederOct 10, 2013
  6. Stephen BashOct 11, 2013
  7. Jeff KingOct 11, 2013
  8. Stephen BashOct 11, 2013

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.