Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

10
  • 58
    This is niche use case IMO. Commented Mar 29, 2012 at 22:30
  • 18
    But interesting nevertheless. Commented Mar 30, 2012 at 11:30
  • 13
    You can have semicolon at the end on a new line indented as the starting line. Then you copy and reorder things as you wish. This also closes the chain nicely. Commented May 11, 2013 at 17:38
  • 25
    Is it just me who wonders why anyone would care how neat the diffs of their commits look? as a general rule, people read code, not diffs. Commented Dec 3, 2014 at 12:06
  • 20
    @Jules, cleaner diffs mean merges are more likely to succeed. Commented Feb 14, 2016 at 6:09