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

Re: How to split a patch

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 28, 2008, 12:47 UTC
Message-ID
<alpine.LSU.1.00.0801281246180.23907@racer.site>
In-Reply-To
<7vy7aatfck.fsf@gitster.siamese.dyndns.org>
Hi,
On Mon, 28 Jan 2008, Junio C Hamano wrote:
Show 14 quoted lines
> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
> 
> > "Paolo Ciarrocchi" <paolo.ciarrocchi@gmail.com> writes:
> >
> >> Yes it helps but I still wonder whether thereis a "simpler" way to 
> >> achive that. Is it possible to split a patch selecting the hunk in 
> >> git gui or any other graphical tool?
> >
> > You can apply the patch without commiting it, and them make several 
> > partial commits, by right-click "stage hunk for commit" in git-gui.
> 
> Yes, and you can do the same with "git add -i".  These tools are
> not quite nice, as they encourage a wrong workflow of committing
> what you haven't had as a whole in the work tree.

FWIW I have a preliminary patch for "git stash apply -i" in my personal next branch. It does not quite work yet, and it is stalled, of course, since I am working on master until 1.5.4 is released.

Ciao, Dscho

Previous: Wincent ColaiutaNext: Wincent Colaiuta
Message 9 of 11 in “How to split a patch”
  1. Paolo CiarrocchiJan 28, 2008
  2. Junio C HamanoJan 28, 2008
  3. Paolo CiarrocchiJan 28, 2008
  4. Matthieu MoyJan 28, 2008
  5. Junio C HamanoJan 28, 2008
  6. Junio C HamanoJan 28, 2008
  7. Mike HommeyJan 28, 2008
  8. Wincent ColaiutaJan 28, 2008
  9. Johannes SchindelinJan 28, 2008
  10. Wincent ColaiutaJan 28, 2008
  11. Boaz HarroshJan 28, 2008

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.