(list) at the end of commit SHA

Solution 1:

Those are decorations. They are produced by using the --decorate option. If you do not ask specifically for a particular decoration option, you get the one you configured as log.decorate, and if you did not configure one, you get --decorate=auto.

Note that very old versions of Git do not have --decorate=auto as a default, so here, an explicit --decorate is more useful. Since --auto means --decorate=no if git log's output is not going to a "terminal", --decorate is still sometimes useful anyway.1

See also How to interpret the brackets in the git log?


1"Terminal" is defined as anything for which isatty(1) returns true. This therefore depends on the behavior of your system's C library isatty function. On a Unix-like system, this means in any standard terminal window as long as you are not redirecting your git log output to a file or pipe.