Re: git filter-branch --filter-notes/--post-rewrite?

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

 



On Thursday 17 March 2011, Hallvard B Furuseth wrote:
> Is there a git version where filter-branch can copy notes, or with a
> post-rewrite hook?  I found an old discussion of that on WWW, but
> nothing seems to have come of that yet.  Currently I remove the 'rm
> -rf "$tempdir"' in git-filter-branch.sh so the info is available
> for a separate script.

No, AFAIK notes copying (or post-rewrite hook) has not yet been implemented 
in filter-branch. However, it shouldn't be very difficult to add support for 
this:

Looking at git-rebase.sh (where it _is_ implemented), it seems to be a 
matter of feeding "old_sha1 new_sha1" pairs into a "rewritten" file, and 
then passing that file to the stdin of "git notes copy --for-rewrite=filter-
branch" (followed by passing the same file to the "post-rewrite" hook).


Have fun! :)

...Johan

-- 
Johan Herland, <johan@xxxxxxxxxxx>
www.herland.net
--
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]