You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
How would the same operation be performed using git from the command line terminal?
# bar.txt is tracked by git
rm -f bar.txt
git commit -am "Delete that file"
Current behavior:
Currently, removing a file in a repository without using go-git will break the git commit All functionalities. error = Lstat error no such file or directory
If the file does not exist anymore Add will return an Lstat error, which is expected because a deletion can be considered a modification. Hence it should be covered by a Commit.
So my guess is, if not found the StatusCode of the FileStatus should be modified to Deleted.
go-git version:
~4.0.0-rc9
I'll be happy to submit a PR if you want.
If you have a better idea,I will be happy to read it !
The text was updated successfully, but these errors were encountered:
grunenwflorian
changed the title
git commit -a should not only refer to the storage but to filesystem
git commit -a should not refer to the storage but to the filesystem
Aug 31, 2017
Hi,
[x] feature request
How would the same operation be performed using git from the command line terminal?
# bar.txt is tracked by git
rm -f bar.txt
git commit -am "Delete that file"
Current behavior:
Currently, removing a file in a repository without using go-git will break the git commit All functionalities. error = Lstat error no such file or directory
Expected behavior:
worktree_commit.go, Commit.
If the file does not exist anymore Add will return an Lstat error, which is expected because a deletion can be considered a modification. Hence it should be covered by a Commit.
So my guess is, if not found the StatusCode of the FileStatus should be modified to Deleted.
go-git version:
~4.0.0-rc9
I'll be happy to submit a PR if you want.
If you have a better idea,I will be happy to read it !
The text was updated successfully, but these errors were encountered: