Skip to content

Bulk ammending commit messages in git

At my job I’m using git-p4 to work locally with some rails code in git and push to perforce. It’s working okay but one issue for me is that we require every commit to perforce to have a code review by someone, and we put the reviewer’s name at the bottom of each commit. For example:

Live changes to histograms
-commonized the histograms views & logic

CR: JamesM

Well when I’m working in the git repo, I don’t know who is going to code review it, so I end up having to add CR: JamesM to several commits. It can be done with rebase -i, but it is several steps per commit. I could use git-notes, but that doesn’t follow the format that we like (it puts Notes: in). Because this is a local repo only, changing the commit history is not a big deal. After some searching I found the way:

git filter-branch --msg-filter 'cat && echo "CR: REVIEWER"' p4/master~1..HEAD

This little beauty will append CR: REVIEWER to all of the commits from the master to the current head (all of the local commits).

27 Comments

  1. Brandi wrote:

    What’s up Dear, are you genuinely visiting this
    website regularly, if so after that you will absolutely takke pleasant knowledge.

    Tuesday, June 28, 2016 at 6:38 am | Permalink
  2. Paul is expanding the Spot Loan, personal loan business to 100 branches across Australia.

    Thursday, June 30, 2016 at 12:52 am | Permalink
  3. Reyna wrote:

    you are іn point of fact a good webmaster. The site loading speed
    is amazing. It sort of feels that you’re doing any distinctive triсk.
    In addition, Thе contents are masterԝork. you’ve performed a excellent task in this
    ѕubject!

    Saturday, July 2, 2016 at 6:34 pm | Permalink
  4. Jerrold wrote:

    In it you will find a number of beautiful suites that will leave you with a smile on your face as
    you experience all that can be offered from a quality establishment.
    The beautiful property is home to two signature courses, along with the hotel’s plethora of
    accommodations, dining options, and recreational facilities.
    Games conclude with the “Bear Claw,” a thrilling set of four challenging
    holes carefully balanced on the edge of the sweeping coastline.

    Saturday, July 9, 2016 at 11:54 pm | Permalink
  5. zyprexa wrote:

    I’m no longer sure the place you’re getting your info, but great topic.
    I needs to spend a while finding out much more or working out
    more. Thank you for excellent info I was looking for this information for
    my mission.

    Monday, July 11, 2016 at 2:26 am | Permalink
  6. Open AppNana app —> tap Invite” tab —> in the bottom, you will see e-mail address.

    Tuesday, July 12, 2016 at 8:57 pm | Permalink
  7. Well, if that is the case then here’s a good idea to help you get started.
    These major areas that make up the industry allow
    students to train in areas they are most skilled in.
    A true professional production studio should be able to guide you through the process because this
    will not be their first time working with multi-media marketing.

    Wednesday, July 13, 2016 at 6:47 am | Permalink
  8. The understanding of design principles can be applied to several careers.
    These major areas that make up the industry allow students to train in areas they are most skilled in. While you’ll want to work with a seasoned professional
    who is tenacious and can make decisions for the good
    of the project, you’ll also want to get the inside scoop from others who have worked with this prospective
    director.

    Wednesday, July 13, 2016 at 9:56 pm | Permalink
  9. With Molly Maid, you get assured outcomes and you
    by no means have to worry about legal responsibility,
    taxes or cancellations—a workforce of bonded, insured housekeepers will at all times arrive when scheduled, along with your cleaning
    plan in hand, to provde the free time you want and a house you will be pleased with.

    Friday, July 15, 2016 at 4:53 pm | Permalink
  10. Hi there everyone, it’s my first visit at this website, and paragraph
    is actually fruitful for me, keep up posting such content.

    Friday, July 15, 2016 at 7:37 pm | Permalink
  11. Cheryl wrote:

    * Flexibility Lastly, find a financing method which provides flexibility when it comes
    to paying your loans. Is there any reason why any company should offer a car
    loan to anybody with a poor credit record. When you’re negotiated the
    best deal, let the dealership know that you have pre-approved financing and
    give the finance manager a chance to beat your rate.

    Wednesday, July 27, 2016 at 6:14 pm | Permalink
  12. Ronda wrote:

    I like it when folks get together annd share opinions.
    Greqt website, stick with it!

    Sunday, July 31, 2016 at 7:21 pm | Permalink
  13. m88 wrote:

    Revealed in Chiropractic Sports Medication Journal; the Journal of the American Chiropractic Board of Sports
    activities Physicians, Vol 9, No. 2, Could 1995 pp fifty two-55.

    Monday, August 1, 2016 at 7:18 pm | Permalink
  14. That is it from me, ideally Obtain Age of Empire 3 Computer Full Version could be
    useful to you.

    Thursday, August 25, 2016 at 1:30 am | Permalink
  15. Life Path 6: In your quest to assist others, you should be
    taught to find the middle floor between assisting
    and enabling.

    Saturday, August 27, 2016 at 5:58 am | Permalink
  16. wonderful points altogether, you simply received a emblem new reader.
    What may you suggest about your post that you just made some days in the past?
    Any certain?

    Thursday, September 1, 2016 at 2:39 am | Permalink
  17. clashgen.com wrote:

    Get Unlimited Clash of Clans elixir exploit Gems
    and Gold Credits For Your Android and iOS Devices For Free.

    Sunday, September 11, 2016 at 3:08 am | Permalink
  18. This is very fascinating, You are an overly professional blogger.
    I’ve joined your rss feed and sit up for seeking more of your excellent post.
    Additionally, I’ve shared your website in my social networks

    Saturday, September 17, 2016 at 3:09 am | Permalink
  19. Fine way of describing, and good piece of writing to
    obtain information concerning my presentation subject, which i
    am going to deliver in institution of higher education.

    Saturday, November 12, 2016 at 4:45 am | Permalink
  20. Vince wrote:

    I’m amazed, I have to admit. Rarely do I come across a
    blog that’s equally educative and engaging, and let me tell you,
    you’ve hit the nail on the head. The problem is something not enough folks are speaking
    intelligently about. I am very happy I came
    across this during my hunt for something relating to this.

    Sunday, November 13, 2016 at 9:58 am | Permalink
  21. Truly when someone doesn’t know after that its up to other users that they will help, so
    here it occurs.

    Tuesday, December 6, 2016 at 8:06 am | Permalink
  22. fitzahats wrote:

    I believe that is among the most significant information for me.

    And i am satisfied reading your article. However should observation
    on few normal things, The website style is great, the articles
    is actually excellent : D. Just right task, cheers

    Thursday, January 5, 2017 at 2:33 pm | Permalink
  23. web page wrote:

    Excellent, ѡɦɑt a weblog it is! Thіs website рresents helpful data to ᥙs, keep іt up.

    Saturday, January 21, 2017 at 5:19 pm | Permalink
  24. Real Estate wrote:

    Billed as a disruptive and fast growing real estate
    sales and property management business” it breaks from the traditional franchise model to be more of a real estate one-stop shop – it will offer selling agents,
    property management services, as well as mortgage-broking services, settlement agents and insurance brokers.

    Wednesday, February 1, 2017 at 10:48 am | Permalink
  25. LYNSEY wrote:

    you are in reality a excellent webmaster. The web site loading pace is amazing.
    It seems that you’re doing any distinctive trick.
    Moreover, The contents are masterwork. you have performed a magnificent activity on this topic!

    Tuesday, February 14, 2017 at 9:56 pm | Permalink
  26. Hi there, its nice post concerning media print, we all understand media
    is a impressive source of information.

    Sunday, March 26, 2017 at 4:29 am | Permalink
  27. This design is wicked! You certainly know how to keep
    a reader entertained. Between your wit and your videos, I was
    almost moved to start my own blog (well, almost…HaHa!) Wonderful job.
    I really enjoyed what you had to say, and more than that, how you presented it.
    Too cool!

    Sunday, March 26, 2017 at 4:37 am | Permalink

22 Trackbacks/Pingbacks

  1. john lewis customer care email on Thursday, June 23, 2016 at 10:02 am

    john lewis customer care email

    confabulus › Bulk ammending commit messages in git

  2. clash royale cheats golds on Tuesday, July 5, 2016 at 3:22 pm

    clash royale cheats golds

    confabulus › Bulk ammending commit messages in git

  3. Www.Gamihan.com on Tuesday, July 12, 2016 at 8:54 am

    http://Www.Gamihan.com

    confabulus › Bulk ammending commit messages in git

  4. http://club.goodtime.ir on Saturday, July 16, 2016 at 9:07 pm

    http://club.goodtime.ir

    confabulus › Bulk ammending commit messages in git

  5. http://www.eshellaw.ca/sunny-electricals-ideal-electrical-supplies-for-smoke-alarm-and-water-heating-devices

    confabulus › Bulk ammending commit messages in git

  6. john lewis boom bar wireless speaker graphite on Wednesday, July 20, 2016 at 12:24 am

    john lewis boom bar wireless speaker graphite

    confabulus › Bulk ammending commit messages in git

  7. taxipunemumbai.anjalienglishschool.com on Wednesday, July 20, 2016 at 8:43 pm

    taxipunemumbai.anjalienglishschool.com

    confabulus › Bulk ammending commit messages in git

  8. Download Lagu Tulus Ruang Sendiri on Thursday, July 28, 2016 at 5:56 am

    Download Lagu Tulus Ruang Sendiri

    confabulus › Bulk ammending commit messages in git

  9. Cybertims.net on Tuesday, August 9, 2016 at 6:10 pm

    Cybertims.net

    confabulus › Bulk ammending commit messages in git

  10. wizard101 promo codes 2013 may on Monday, August 15, 2016 at 2:07 am

    wizard101 promo codes 2013 may

    confabulus › Bulk ammending commit messages in git

  11. cheap furniture stores melbourne fl on Thursday, August 18, 2016 at 1:42 pm

    cheap furniture stores melbourne fl

    confabulus › Bulk ammending commit messages in git

  12. hotel rooms with private hot tubs london on Thursday, August 25, 2016 at 10:56 am

    hotel rooms with private hot tubs london

    confabulus › Bulk ammending commit messages in git

  13. marriott hotel in durham england on Thursday, August 25, 2016 at 1:16 pm

    marriott hotel in durham england

    confabulus › Bulk ammending commit messages in git

  14. amazon promotional code for free shipping 2012 on Friday, August 26, 2016 at 2:26 pm

    amazon promotional code for free shipping 2012

    confabulus › Bulk ammending commit messages in git

  15. john lewis biography jazz on Saturday, August 27, 2016 at 7:58 am

    john lewis biography jazz

    confabulus › Bulk ammending commit messages in git

  16. basic electrical circuits tutorial on Monday, August 29, 2016 at 3:21 pm

    basic electrical circuits tutorial

    confabulus › Bulk ammending commit messages in git

  17. http://architecturefashion.com/?page_id=78 on Monday, October 3, 2016 at 8:09 pm

    http://architecturefashion.com/?page_id=78

    confabulus › Bulk ammending commit messages in git

  18. electrical circuit symbols test on Wednesday, October 12, 2016 at 2:39 pm

    electrical circuit symbols test

    confabulus › Bulk ammending commit messages in git

  19. www.afroqueenamerican.com on Wednesday, November 2, 2016 at 6:22 pm

    http://www.afroqueenamerican.com

    confabulus › Bulk ammending commit messages in git

  20. http://wereseller.com/index.php?a=profile&u=ferdinandw on Saturday, November 12, 2016 at 11:19 am

    http://wereseller.com/index.php?a=profile&u=ferdinandw

    confabulus › Bulk ammending commit messages in git

  21. facebook.hostingmommy.in on Thursday, December 8, 2016 at 7:12 pm

    facebook.hostingmommy.in

    confabulus › Bulk ammending commit messages in git

  22. cheap nfl jerseys on Tuesday, March 7, 2017 at 11:26 am

    cheap nfl jerseys

    confabulus › Bulk ammending commit messages in git

Post a Comment

Your email is never published nor shared.