Tomek CEDRO wrote:
> Now when I do "git format-patch openocd-master file" I get bunch of
> patch files based on my local commits. This is nasty as brings
> unnecessary commits. I would rather produce one patch that contains
> only important changes.. or you prefer the way format-patch produces?

A mix is best. Please turn it into as many patches as make sense. One
logical change per patch is the best. Maybe it will indeed only be a
single commit, but maybe there are some preparatory changes that are
not related to SWD itself, then they should go in a commit each.


> How to produce "good" patch with description etc from "git diff"
> result? :-)

Have a look at how to use interactive rebase. (rebase -i)

When you have a branch off master with a couple of commits you can
run:

git rebase -i origin/master

to start an interactive rebase of all commits since the last commit
you have from the remote repository.

Check out the man page git rebase --help and/or the
http://progit.org/ book. Please ask if you have some questions.


//Peter
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to