Am Montag, 7. Februar 2011, um 16:03:45 schrieb David Kastrup:
> Janek Warchoł <lemniskata.bernoull...@gmail.com> writes:
> > 2011/2/7 Carl Sorensen <c_soren...@byu.edu>:
> >> If you want to make it part of the previous commit, you can do so with
> >> git commit -a --amend
> >> 
> >> But I don't recommend doing that.
> > 
> > Aha. Ok.
> 
> Rule of thumb: --amend is fine as long as long as the original commit
> never got into any repository other than the one being amended.

My workflow is that I make several commits (i.e. I don't amend) in each 
feature branch. But before actually merging back to master (or pushing to the 
server), I do a 

git rebase -i origin/master

which gives me the option to reorder the patches and to combine multiple small 
patches into one meaningful patch. This way, when still working on the 
feature/bugfix, I can see the evolution (and check that I have really dealt 
with all objections/suggestions). But when I push, I don't clutter the 
repository with many small/trivial patches, but with one or two larger patches 
for one feature/bugfix.

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, reinh...@kainhofer.com, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to