• atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    19 hours ago

    Technically true - but it looks like jj does a lot of history re-writing which would require a lot of care to be taken when working on a shared codebase.

    The page on remotes has some cautions in it.

    We need the --allow-backwards flag to set the trunk branch to the previous commit because it is a dangerous operation: if we had pushed trunk, things would get weird when we try and push now. We’ve kept it all local, so there’s no issues with doing this.

    • HaraldvonBlauzahn@feddit.orgOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      18 hours ago

      jj by default refuses to change any commits on published branches such as a master branch that has been pushed. The details are configurable.

      BTW that’s why I linked Linus Torvalds mail on when and why to rewrite history - it is good advice.