Skip to content

Commit ddc3d12

Browse files
committed
[annex] Print progress of metadata writing
After annex add is finished, the client writes the filename to the content metadata so that the annex content key is always associated with the name of the file it was added as. This is useful for knowing which file is being transferred when uploading old versions of files (when multiple commits happen between uploads). The metadata writing can take a while when a large number of files is being added, so printing this information is useful. See issue #269 for more info
1 parent 4a7c8da commit ddc3d12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git/annex.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,8 +1005,12 @@ func AnnexAdd(filepaths []string, addchan chan<- RepoFileStatus) {
10051005
logstd(nil, stderr)
10061006
}
10071007
// Add metadata
1008+
status.State = "Writing filename metadata"
10081009
for _, fname := range filenames {
10091010
setAnnexMetadataName(fname)
1011+
status.FileName = fname
1012+
status.Progress = progcomplete
1013+
addchan <- status
10101014
}
10111015
return
10121016
}

0 commit comments

Comments
 (0)