Re: [RFC] Allow git-am to operate in an empty git repo

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

 



Peter Baumann wrote:
On Fri, Sep 14, 2007 at 01:16:10PM +0200, Andreas Ericsson wrote:
Peter Baumann wrote:
Try not to error out if we are in an emtpy git repo. This could be usefull
for exporting all your commits as emails and importing them latter with
git-am in a newly created repo.
I like the sound of this. We've got a few old repos transferred from CVS
where the usernames aren't correct, and it's too much of a trouble to
fix them up now. With this in place, we could script it to run in an
empty repo over-night, fixing that slightly annoying ugliness :)


Perhaps you want to take a look at git-filter-branch? It was written for
exactly the case like you described and is thus more suitable for your
needs.


I made an attempt, but the plethora of options along with the fact that
every commit seemed to get the same author and timestamp made me abandon
the attempt. sed-ing a few patches is simple enough that the concept
won't increase my aspirin bill, while at the same time getting the job
done.

--
Andreas Ericsson                   andreas.ericsson@xxxxxx
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux