Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
slapos slapos
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 123
    • Merge requests 123
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • slaposslapos
  • Merge requests
  • !273

Merged
Created Jan 25, 2018 by Jérome Perrin@jeromeOwner

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

  • Overview 6
  • Commits 1
  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: feat/update-hash-mergetool
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7