Questions tagged [git-blame]

git-blame is a git command that shows what revision and author last modified each line of a file.

git-blame is a git command that shows what revision and author last modified each line of a file.

https://www.kernel.org/pub/software/scm/git/docs/git-blame.html

git annotate is almost an alias for git blame (the output format is slightly different).

115 questions
0
votes
2 answers

Unconventional method of using Git

I am working on a specific use case of automating code mgmt using git. I am not certain if git has this feature built in, or there is a product out there that does this already. I appreciate if you could point me towards the right direction. The…
iprimo
  • 11
  • 3
0
votes
1 answer

Current line blame in Atom editor

There's a feature in VS Code's GitLense extension that I'm trying to find the equivalent for with Atom. It's the current line blame feature. I have installed the Atom blame package which works, but is slow to load for large files with a large number…
jinglesthula
  • 4,446
  • 4
  • 45
  • 79
0
votes
1 answer

How to run git diff with having revision info in the resulting output

I need to get git diff output which is expected to have revision info to each line i.e. $ git diff f08cbec42b80725e7840ae3d05f790f6fa9daa8e..cbe1c77ad85c58be93964bd8b8fb624f654b7670 diff --git a/.gitignore b/.gitignore index…
aalekseyev
  • 133
  • 1
  • 10
0
votes
1 answer

How to get the commit hash that added a line to a file, which is already deleted by the current commit in github repository

From the pull request found in here we can see that in the file /java/org/wso2/carbon/analytics/apim/internal/TemplateManagerInitializerComponent.java 38,39 and 40 lines have been deleted. Now I need to identify the commit hash (hashes) which…
Kasun Siyambalapitiya
  • 3,956
  • 8
  • 38
  • 58
0
votes
0 answers

how does git blame identifies which lines are added or deleted

For a example have a look at this commit in here, the blame view present in the website, clearly shows which lines are added, which lines are deleted from the current commit. How does it do that?. After searching on the Internet for a long period of…
Kasun Siyambalapitiya
  • 3,956
  • 8
  • 38
  • 58
0
votes
1 answer

Git blame -L bug?

I am running git blame -L with multiple -L options in order to get line information for non-sequential lines in a single git call. I believed that this call: git blame -L38,38 -L40,40 should be equivalent to the these 2 calls made…
pixman20
  • 183
  • 1
  • 6
0
votes
0 answers

IntelliJ show Git annotated files

Is there a way/window to display the list of files that was Git annotated? Apparently, have forgotten to switch-off the feature when closing the editor from the specific coding session thus the annotate icon is displaying before the module name on…
David B
  • 3,269
  • 12
  • 48
  • 80
0
votes
1 answer

Find who & when deleted a line in a function using GIT

I have some ruby code in a huge repo like this def my_func params { :k1 => 1, :k2 => 2, :k3 => 3, :k4 => 4, :k5 => 5, :k6 => 6 } end Somehow, few key-value pairs got deleted over time. I want to git blame who did this, …
λq_
  • 362
  • 2
  • 10
-1
votes
2 answers

How can I show annotations in PhpStorm/WebStorm search preview

When previewing a file in the search window, the "Annotate" (git blame) option is grayed out. Is there a way to enable this with an config option or a plugin? Searching "phpstorm show annotations in search" takes me to this unrelated question: How…
chiliNUT
  • 18,989
  • 14
  • 66
  • 106
-1
votes
1 answer

Git log diffs around known line

Is it possible to log commits of file in git, when I know certain line, and want to show commits which edited the lines above or below that line in the scale of N lines? I want to find, which commit broke the functionality, when certain method call…
Tuomas Toivonen
  • 21,690
  • 47
  • 129
  • 225
1 2 3 4 5 6 7
8