[ 
https://issues.apache.org/jira/browse/SCM-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17490092#comment-17490092
 ] 

Tamás Cservenák commented on SCM-976:
-------------------------------------

Just a few thoughts:
 * git whatchanged is kept only for "historical" reasons. From man: "New users 
are encouraged to use git-log instead. The whatchanged command is essentially 
the same as git-log but defaults to show the raw format diff output and to skip 
merges. The command is kept primarily for historical reasons..."
 * am using git 2.25.1 on my linux box and my output is like the first "used to 
be" output (but adds HEAD pointers like second one). Am unsure what may drive 
the output, it may be my env, but am unsure you can do it in "generic" way.
 * why not switch to git-log instead?

My example output:
{noformat}
commit 05b67a4f72f3f64306637ccdf0d2f800616dee5c (HEAD -> master, origin/master, 
origin/HEAD)
Author: Tamas Cservenak <[email protected]>
Date:   Mon Feb 7 19:33:01 2022 +0100

    [MINDEXER-104] Migrate to Lucene 8.x (#169)
    
    * Eliminate use of deprecated Lucene API
...       {noformat}

> [GITEXE] Changelog does not work in current versions of git.
> ------------------------------------------------------------
>
>                 Key: SCM-976
>                 URL: https://issues.apache.org/jira/browse/SCM-976
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 2.0.0-M1
>            Reporter: Niels Basjes
>            Priority: Major
>
> Since a long time the headers for the output of "git whatchanged" have been 
> changed, as a consequence there is no more output from this command.
> The reason is that the output of this command used to be something like this:
> {code}
> commit 2d22f2da71ef279c4759b1c09cdb8282b63f0cf6
> Author: Mark Struberg <[email protected]>
> Date:   2007-11-24 01:10:06 +0100
> {code}
> yet currently it looks like this:
> {code}
> commit 4fc34cfa14f2e72506187b03a492ce55ed459d4c (HEAD -> master, 
> origin/master, origin/HEAD)
> Author:     Michael Osipov <[email protected]>
> AuthorDate: 2022-01-08 21:02:12 +0100
> Commit:     Michael Osipov <[email protected]>
> CommitDate: 2022-01-08 21:02:12 +0100
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to