git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* History rewriting swiss army knife
@ 2006-03-24 14:08 Petr Baudis
  2006-03-24 22:47 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Baudis @ 2006-03-24 14:08 UTC (permalink / raw)
  To: git

  Hi,

  it is not very frequent, but sometimes you really want to rewrite your
history - you need to get rid of a copyright violation or a file with
confidential information slipped through, or who knows what other good
reason you might have. As long as you are aware of the implications of
all the tree/commit ids getting different, why not.

  It's never been so easy before - I've written cg-admin-rewritehist,
which will execute your filters for each commit (which can rewrite the
tree contents, just the tree itself through the index, committer/author
information and commit message) while the script will obviously preserve
all the other information like merges, author/committer information etc.
The script will place the rewritten history on a newly created branch.

  If you are interested, you can also look at the script at

	http://kernel.org/git/?p=cogito/cogito.git;a=blob;f=cg-admin-rewritehist

but it has few Cogito dependencies.

  Have fun,

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Right now I am having amnesia and deja-vu at the same time.  I think
I have forgotten this before.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-03-26 13:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-24 14:08 History rewriting swiss army knife Petr Baudis
2006-03-24 22:47 ` Junio C Hamano
2006-03-26 13:17   ` Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).