Author Topic: Git blame output tries to find symbols for the commit hash and user  (Read 1228 times)

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
SE 26.0.1.0 on RHEL7.

I ran git blame on a java source file and SE highlights some of the git commit hashes (those containing a zero (0)) and the associated usernames in red as undefined symbols.  I would expect the symbol highlighting to be restricted to the code area.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Git blame output tries to find symbols for the commit hash and user
« Reply #1 on: January 20, 2022, 09:39:33 PM »
This is a known limitation.  Blame needs to not be inserting that information as part of the source file.

Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Git blame output tries to find symbols for the commit hash and user
« Reply #2 on: January 20, 2022, 10:26:02 PM »
I will add a hot fix to disable symbol coloring for annotated source files.

rjpontefract

  • Senior Community Member
  • Posts: 250
  • Hero Points: 10
Re: Git blame output tries to find symbols for the commit hash and user
« Reply #3 on: January 20, 2022, 10:31:02 PM »
Thanks, Dennis, it's appreciated.