Re: git rebase -i without altering the committer date

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

 



Am 20.04.2016 um 23:47 schrieb Andreas Schwab:
Shaun Jackman <sjackman@xxxxxxxxx> writes:

I'd like to insert a commit between two commits without changing
the committer date or author date of that commit or the subsequent
commits.

The easiest way to implement that is to add a graft to redirect the
parent of the second commit to the inserted commit, then use git
filter-branch to make the graft permanent.

This only inserts a new project state, but does not propagate the changes brought in by the new commit to the subsequent commits. This propagation of changes could also be done with filter-branch, but it may be difficult depending on circumstances.

-- Hannes

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