blame

Git blame on reorganized SVN repository

末鹿安然 提交于 2019-12-08 02:22:25
问题 git blame isn't showing me the all history of a SVN repository which had its layout reorganized. I'm using git-svn to access a SVN repository. The SVN repository used to have a structure with a vast tree of folders to hold the many projects. Last year I reorganized and flattened the layout into a more standard trunk/tags/branches layout. The result of which is that all the files in the repository were moved on 17th May 2010. Using the subclipse SVN client from Eclipse, I can do Team->Show

How do I git blame without seeing merges

ε祈祈猫儿з 提交于 2019-12-07 10:06:51
问题 If I've got a file whose history is like this: ----A----B \ \ C----D----E and I do a blame from E then I'd like to see what changed in revisions B & C, but I don't really care about D, since that was a merge. Is there a way I can do this? I guess I'm looking for some kind of --no-merges option to git blame, but I'm not seeing one in the manual. 回答1: Actually, you do care about D. Consider this case: in commit B: 2) banana 3) coconut 4) domino // conflicts with C in commit C: 2) banana 3)

Programmatically get TFS blame (annotation) data

岁酱吖の 提交于 2019-12-07 02:42:37
问题 I'm trying to implement a plugin for Team Foundation Server 2010 that will create reports about users in a team project. Conceptually, all I need in order to properly implement this plugin is access to the same data that you get when you use the "Annotate" feature in Visual Studio: I need to be able to tell who was the last person to author a given line of code. I've scoured the Internet for documentation or code samples, but all that I can find are either suggestions such as using the TFS

Git blame on reorganized SVN repository

﹥>﹥吖頭↗ 提交于 2019-12-06 08:15:45
git blame isn't showing me the all history of a SVN repository which had its layout reorganized. I'm using git-svn to access a SVN repository. The SVN repository used to have a structure with a vast tree of folders to hold the many projects. Last year I reorganized and flattened the layout into a more standard trunk/tags/branches layout. The result of which is that all the files in the repository were moved on 17th May 2010. Using the subclipse SVN client from Eclipse, I can do Team->Show Annotation and it shows the history of a file as I expect - lines of code changed in 2009 are correctly

How do you find who merged a git commit into a branch?

核能气质少年 提交于 2019-12-05 17:24:54
问题 There is a file in our git repository in work, I want to find out who merged this file into a branch. I have the commit hash that identifies the commit (lets say 552a976f1a25f9bad57efb9455e951f6b7b3367f ) that introduced the file, and I know that the file is on the branch staging . How can I find the hash of the commit that merged the commit above into the staging branch? I want to find the user who merged, and the date of the merge. 回答1: git log <commit-id>..<branch> --ancestry-path --merges

How do I git blame without seeing merges

我只是一个虾纸丫 提交于 2019-12-05 13:51:38
If I've got a file whose history is like this: ----A----B \ \ C----D----E and I do a blame from E then I'd like to see what changed in revisions B & C, but I don't really care about D, since that was a merge. Is there a way I can do this? I guess I'm looking for some kind of --no-merges option to git blame, but I'm not seeing one in the manual . Actually, you do care about D. Consider this case: in commit B: 2) banana 3) coconut 4) domino // conflicts with C in commit C: 2) banana 3) coconut 4) elephant // conflicts with B In commit D, we resolve the conflict: in commit D: 2) banana 3) coconut

git blame: correct author after merge

我怕爱的太早我们不能终老 提交于 2019-12-05 01:17:05
A GIT merge introduces a new commit. This causes problems with "git blame": the merged lines appear to be committed by the developer that did the merge. I can understand this being the case for conflicting changes (because he solved the conflicts). But is there a way to not have this happening for non-conflicting lines? Some option to "git blame"? If there is no way around, this would basically make "git blame" almost useless when you have a lot of merges - and GIT encourages a lot of merges. Does SVN have this issue with non-conflicting merges? I don't think so, but I may be wrong as I

Eclipse with EGit, git-blame info is hard to see

谁说胖子不能爱 提交于 2019-12-04 22:20:57
using Eclipse Indigo Service Release 2, with EGit plugin and JDK 1.7. I've seen that it should support blame annotations, but I can't get it to show like I see here on Eclipse Wiki . Here's how it looks for me, you can't see the pointer but I'm hovering over the vertical brown line: Anyone know how to expand the annotations view? tmikulcek Right-click on the brown line, Revisions -> Show Author . 来源: https://stackoverflow.com/questions/10208495/eclipse-with-egit-git-blame-info-is-hard-to-see

Find the git branch or branches from commit id

无人久伴 提交于 2019-12-04 18:40:11
问题 Actually am try to get a report on merge conflicts. I used 'git blame' to see who has changed what line, but i couldn't find the branch and repository name information. Is there a way to find the repository name, branch name and author name of a file from 'git blame' or from commit ids' so that whenever a merge conflict occurs i can send an email to the authors who have touched that file/lines to resolve it. 回答1: git blame should only give you the revision and author, but: as mentioned in

How to 'git blame' on the remote-side repository?

别等时光非礼了梦想. 提交于 2019-12-03 19:26:47
问题 on my server I host my personal git remote-side projects (with gitosis), and I have built a web interface to browse the repositories (something like Github). On the remote-side, you are not allowed to do a lot of stuff, because a working tree is missing, and this is correct: btw, for a repository explorer, with few commands I can do almost everything. Except for git blame . I'm not able to find out how to blame a file without a working tree, within the remote-side repository. Got you some