Skip to content

Commit 7bd5767

Browse files
committed
Print "Removing" message for file deletions
1 parent 45dce55 commit 7bd5767

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ginclient/repos.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,12 @@ func Add(paths []string, addchan chan<- git.RepoFileStatus) {
252252
}
253253
}
254254

255+
// Run git add on deleted files only
255256
if len(gitaddpaths) > 0 {
256257
gitaddchan := make(chan git.RepoFileStatus)
257258
go git.Add(gitaddpaths, gitaddchan)
258259
for addstat := range gitaddchan {
260+
addstat.State = "Removing"
259261
addchan <- addstat
260262
}
261263
}
@@ -267,7 +269,6 @@ func Add(paths []string, addchan chan<- git.RepoFileStatus) {
267269
for addstat := range annexaddchan {
268270
addchan <- addstat
269271
}
270-
271272
}
272273
}
273274

0 commit comments

Comments
 (0)