Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-13936

Contrib: script to automate commit message updates for porting

    XMLWordPrintable

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.

      Attachments

        Activity

          People

            ashehata Amir Shehata (Inactive)
            ashehata Amir Shehata (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: