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.91k stars 541 forks source link

Status String() has rename names backwards #1241

Open lucastheisen opened 4 years ago

lucastheisen commented 4 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)