emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Git to manage your Emacs changes


From: Giuseppe Scrivano
Subject: Re: Using Git to manage your Emacs changes
Date: Wed, 07 Apr 2010 22:53:58 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

I have some notes on your script:

John Wiegley <address@hidden> writes:

> git checkout ${1:-upstream}
> git format-patch ..master
>
> for i in [0-9]*.patch; do
>         echo Applying $i
>
>         patch -p1 < $i

I am not sure the script handles added and removed files, probably you
must explicitly call bzr add|rm.



>         grep ^Subject: $i | sed 's/^Subject: \[PATCH\] //' > /tmp/msg.$$
>
>         perl -ne 'print if /^$/ .. /^---/;' $i | \
>           perl -ne 'print unless /^---/ .. eof()' | \
>           tail +2 >> /tmp/msg.$$

tail -n +2



>         bzr commit -F /tmp/msg.$$

I think it is desiderable to keep the original author and commit time as
well.


Cheers,
Giuseppe





reply via email to

[Prev in Thread] Current Thread [Next in Thread]