eficode-academy / git-katas

A set of exercises for deliberate Git Practice
MIT License
1.32k stars 860 forks source link

Remove --decorate from log examples #335

Closed JKrag closed 1 year ago

JKrag commented 2 years ago

At least in all the introductory exercises, there is no reason to mention --decorate on git log as that is more or less the default behaviour anyway and doesn't add to the understanding.

Git help log:

--no-decorate, --decorate[=short|full|auto|no]
           Print out the ref names of any commits that are shown. If short is
           specified, the ref name prefixes refs/heads/, refs/tags/ and
           refs/remotes/ will not be printed. If full is specified, the full ref
           name (including prefix) will be printed. If auto is specified, then if
           the output is going to a terminal, the ref names are shown as if short
           were given, otherwise no ref names are shown. The option --decorate is
           short-hand for --decorate=short. Default to configuration value of
           log.decorate if configured, otherwise, auto.