News for hackers. Stuff that matters.
Re:GitHub for Mac 1.1 by daemianmack on Wednesday November 23, 2011 @04:26PM (#3271813)
Sort of. -p considers consecutive lines a single hunk. Often, that's not what I want. Luckily, there is magit: http://philjackson.github.com/magit/
Re:GitHub for Mac 1.1 by troels on Wednesday November 23, 2011 @04:35PM (#3271851)
You can split the hunks into smaller ones.
Re:GitHub for Mac 1.1 by daemianmack on Saturday November 26, 2011 @12:03PM (#3280164)
You can split hunks until they're consecutive lines. You can't split more granularly than that with -p. You'd need to edit the patch, either directly or with git gui or similar.
Re:GitHub for Mac 1.1 by rbonvall on Wednesday November 23, 2011 @05:50PM (#3272145)
And you can also edit the patch manually.
Re:GitHub for Mac 1.1 by rmgraham on Wednesday November 23, 2011 @08:52PM (#3272659)
I resisted the edit option of git-add -p for a long time because I was afraid of messing something up with a low level tool... big mistake! So easy to use!
Re:GitHub for Mac 1.1 by bostonvaulter2 on Thursday November 24, 2011 @03:35AM (#3273661)
Plus if you make a patch that doesn't apply it will just error out and you can try again. And if you add anything extra by mistake you can easily back it out with something like git reset HEAD <file> or git reset -p