File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class GitMarkdownDiff {
3838 this . cleanupOutputDir ( ) ;
3939
4040 spinner . text = "Getting list of changed files..." ;
41- const range = startRange && endRange ? `${ startRange } ..${ endRange } ` : "" ;
41+ const range = startRange && endRange ? `${ endRange } ..${ startRange } ` : "" ;
4242 const exclusions = [
4343 // Package manager locks
4444 ":!package-lock.json" ,
@@ -104,7 +104,7 @@ class GitMarkdownDiff {
104104 // Add commit messages if a range is specified
105105 if ( startRange && endRange ) {
106106 const { stdout : commitMessages } = await execAsync (
107- `git log --pretty=format:"- %s (%h)" ${ startRange } ..${ endRange } `
107+ `git log --pretty=format:"- %s (%h)" ${ endRange } ..${ startRange } `
108108 ) ;
109109 index . push ( commitMessages + "\n\n## Changed Files\n" ) ;
110110 } else {
Original file line number Diff line number Diff line change 11{
22 "name" : " git-markdown-diff" ,
3- "version" : " 0.0.36 " ,
3+ "version" : " 0.0.37 " ,
44 "description" : " Git diff tool that outputs markdown formatted diffs" ,
55 "main" : " index.js" ,
66 "bin" : {
You can’t perform that action at this time.
0 commit comments