1w6 uRPG 1w6 uRPG
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • Directory

https://sn.1w6.org/file/clacke-20180504T073913-8qtrnr8.html

https://sn.1w6.org/file/clacke-20180504T073913-8qtrnr8.html
Discovered a "new" feature that was introduced into #git 1.6.5, 8 years ago.

https://git-scm.com/docs/git-replace

It's like grafts, except it's more generic and it can be transmitted between repos!

Instead of a line <commitid> [<fakeparent0> ... [<fakeparentn>]] in .git/info/grafts for just manipulating the ancestry of a commit, you can "now" put an object, any type of object, in refs/replace/<sha1toreplace> and git will use that instead of the real object.

git-replace --graft <blah> <bluh> does the same using this mechanism as adding a line <blah> <bluh> to .git/info/grafts would.

Notices where this attachment appears

  1. clacke clacke

    Discovered a "new" feature that was introduced into #git 1.6.5, 8 years ago. https://git-scm.com/docs/git-replace It's like grafts, except it's more generic and it can be transmitted between repos! Instead of a line <commitid> [<fakep…

    Friday, 04-May-18 07:38:56 UTC
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

1w6 uRPG is a microblogging service brought to you by Arne (Drak) Babenhauserheide. It runs the StatusNet microblogging software, version 1.1.1-release, available under the GNU Affero General Public License. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 All 1w6 uRPG content and data are available under the Creative Commons Attribution 3.0 license.