[arch-general] Soft vs Hard links for man pages

Aaron Griffin aaronmgriffin at gmail.com
Mon Dec 3 11:54:58 EST 2007

On Dec 3, 2007 8:05 AM, DaNiMoTh <jjdanimoth at gmail.com> wrote:
> You can use git diff.
> Simply:
> git clone [address] pacman
> - Do your modifications -
> git diff > patch_to_send.
> There will be problems if remote repo is modified while you do your
> modifications; in other words, the patch that you make isn't synced
> with the remote repo.

It's probably far better to do the following:

git clone <url>
git checkout -b mychanges #make a branch for yourself, and switch to it
... make your changes...
git commit -a -s #commit what you did, and sign off
git format-patch master #create a patch against the master branch (the
original clone)

The reason format-patch is superior here is that it maintains your
authorship and change description.

More information about the arch-general mailing list