Details
-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
9223372036854775807
Description
gitport.py is intended to be used instead of the git editor
when needing to modify a large number of commit messages
to match the porting convention used by lustre.
1. Cherry-pick all the patches you want to port over into
your local git repo
2. Modify PATH (or use another method) to make gitport.py
executable from the command line.
3.
In ~/.gitconfig add:
[core] editor = gitport.py
4.
Export a list of all the commits from the branch you're porting
from:
git log --pretty=oneline > lustre-log.out
5.
Export GITLOG environment variable which points to that file:
export GITLOG=/path/to/lustre-log.out
6.
git rebase -i HEAD~<num of patches which need commit messages updated>
NOTE: this script is not intended for normal editing. It'll modify
all the commit messages following the porting convention.
Amir Shehata (ashehata@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/39778
Subject: LU-13936 contrib: automate commit message updated
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 64aea729b93632199f995d5d1c7f71af7e05d134