src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.9k stars 540 forks source link

Status String() has rename names backwards #1241

Open lucastheisen opened 5 years ago

lucastheisen commented 5 years ago

The current code uses:

            path = fmt.Sprintf("%s -> %s", path, status.Extra)

But the git documentation says it should be:

XY ORIG_PATH -> PATH

So I would expect this code to be:

            path = fmt.Sprintf("%s -> %s", status.Extra, path)