[LU-13936] Contrib: script to automate commit message updates for porting Created: 31/Aug/20  Updated: 31/Aug/20

Status: Open
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Amir Shehata (Inactive) Assignee: Amir Shehata (Inactive)
Resolution: Unresolved Votes: 0
Labels: None

Rank (Obsolete): 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.



 Comments   
Comment by Gerrit Updater [ 31/Aug/20 ]

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

Generated at Sat Feb 10 03:05:28 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.