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: Thierry Volpiatto
Subject: Re: Using Git to manage your Emacs changes
Date: Wed, 07 Apr 2010 22:37:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Why not using a stack of patchs like stgit or mercurial qpatchs.
You can then apply these patchs to bzr repo.

Giuseppe Scrivano <address@hidden> writes:

> 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
>
>
>
>

-- 
Thierry Volpiatto
Gpg key: http://pgp.mit.edu/





reply via email to

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