Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA - Asterisk after author's name in git log

In our git log we sometimes see an asterisk after the user name in the Author column. The same user is listed without the asterisk in other commits.

What does the asterisk stand for?

I'm using IntelliJ IDEA 15.0.6.

like image 358
FeinesFabi Avatar asked Jun 19 '17 08:06

FeinesFabi


People also ask

What does the star mean in Git blame?

Annotations for lines modified in the current revision, are marked with bold type and an asterisk. But I think it is important to clarify that this refers to lines modified in the current revision of the file, not the current revision of the repository.

How do I change the author of a commit in IntelliJ?

To set a name for every Git repository on your machine, use $ git config --global user.name "John Smith" To set a name for a single repository, use $ git config user.name "John Smith"

What is Annotate with Git blame IntelliJ?

IntelliJ IDEA does not have its own algorithm for calculating annotations; it simply runs the standard git blame command and parses its output. There is no way to force it to behave differently. You can find the code implementing the Annotate command in the IntelliJ IDEA Git plugin here.

How do I view Git log in IntelliJ?

IntelliJ IDEA lets you review the state of your project at a selected revision. Open the Git tool window Alt+9 and switch to the Log tab. Select a commit and choose Show Repository at Revision from the context menu.


3 Answers

Every change in GIT (and in the most of modern VCS's) has an author and a committer. The Log shows an author because we respect authorship even if the author of changes doesn't have access to the repo or isn't able to commit code by himself.

Asterisk on the author's name in the Log means that this commit was created by the described person, but was applied by someone else.

Here is an illustration of how it looks: enter image description here

There are some common cases when this happens:

  • you cherrypicked someone else's commit
  • you rebased branch with someone else's commits
  • you applied .patch file mailed to you by someone else
  • you merged the pull-request via GitHub UI - GitHub does it with its own user but leaves authorship to you.
like image 199
Denis Kurochkin Avatar answered Oct 16 '22 08:10

Denis Kurochkin


It indicates that commit is the most recent commit to modify the file.

Annotations for lines modified in the current revision are marked with a bold type and an asterisk.

https://www.jetbrains.com/help/idea/investigate-changes.html#annotate_blame

like image 17
Jeff Puckett Avatar answered Oct 16 '22 06:10

Jeff Puckett


That (the asterisk) is usually when another user has rebased the commits of the original author. You can confirm this in the message window on the lower right. It will show you the original author along with "committed by" with the name of the user who did the rebase.

like image 3
Abbas Gadhia Avatar answered Oct 16 '22 08:10

Abbas Gadhia