Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • slapos slapos
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 129
    • Merge requests 129
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • slaposslapos
  • Merge requests
  • !273

tools: a simple git.mergetool for working with buildout.hash.cfg

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge jerome/slapos:feat/update-hash-mergetool into master Jan 25, 2018
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 1

Rewriting commit history with git rebase -i always caused some conflicts on md5sum of modified files. update-hash made all this easier, because we could just revert buildout.hash.cfg, re-run update-hash and commit the changes.

This tool makes this scenario a bit more user friendly by automating the steps by running as a git mergetool.

An interactive rebase session can be initiated by running this command from software/*/ directory:

git rebase -i --exec "$(pwd)/../../update-hash $(pwd)/buildout.hash.cfg" origin/master

and if conflict occur, run:

git mergetool --tool update-hash-mergetool && EDITOR=cat git rebase --continue

This way, rebase session can be almost non interactive (still have to run the above mergetool command) when conflicts are only on md5sum updates.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feat/update-hash-mergetool
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7