jira - Combine git blame output with commit message -
is possible combine git blame
output part of commit message (first word, jira ticket in case)?
$ git blame file.js -l 1,5 jira-289 46fdf2b9 (john smith 2015-03-24 23:47:36 +0100 1) var line1 = 1; jira-111 69430b41 (john smith 2015-03-15 23:47:36 +0100 2) aletr("smth"); jira-111 69430b41 (john smith 2015-03-15 23:47:36 +0100 3) jira-289 46fdf2b9 (john smith 2015-03-24 23:47:36 +0100 4) var line2 = line2 + 1; jira-20 75fdf6bb (john smith 2015-02-02 22:47:36 +0100 5) console.log(line2);
you cannot in example. however, can use git blame --porcelain
format fit machine consumption , write script around that.
Comments
Post a Comment