[
https://issues.apache.org/jira/browse/SCM-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16403790#comment-16403790
]
Michael Osipov commented on SCM-839:
------------------------------------
There are now two ways to solve this:
1. Drop end version when cache is run. This one's easy.
2. Add a {{-Dstaged}} parameter to the goal, because you haven't requested the
staged diff with {{scm:diff}} and the {{DiffResult}} command line won't reveal
that it can with {{--cached}}. I'd expect a PR here.
Variables in {{GitDiffCommand}} are incorrectly labeled: {{clDiff2Index}} does
not query the index at all.
> scm:diff with GIT doesn't work
> ------------------------------
>
> Key: SCM-839
> URL: https://issues.apache.org/jira/browse/SCM-839
> Project: Maven SCM
> Issue Type: Bug
> Components: maven-scm-provider-gitexe
> Affects Versions: 1.9.5
> Environment: Apache Maven 3.3.9
> (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T16:41:47+00:00)
> Maven home: C:\Users\a565281\apache-maven-3.3.9\bin\..
> Java version: 1.8.0_92, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_92\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "dos"
> Reporter: Jacek Gebal
> Priority: Major
>
> When executing the maven command as below, I get an exception.
> mvn scm:diff -DstartScmVersion=master -DstartScmVersionType=branch
> -DendScmVersion=HEAD -DendScmVersionType=branch
> Also the examples in documentation for mvn:diff do not seem to be OK:
> https://maven.apache.org/components/scm/maven-scm-plugin/examples/scm-advance-features.html
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)