Merge branch 'bc/prune-info' into maint
"git prune" without "-v" used to warn about leftover temporary files (which is an indication of an earlier aborted operation). * bc/prune-info: prune.c: only print informational message in show_only or verbose mode
This commit is contained in:
commit
f56d036ce9
@ -25,7 +25,8 @@ static int prune_tmp_object(const char *path, const char *filename)
|
||||
return error("Could not stat '%s'", fullpath);
|
||||
if (st.st_mtime > expire)
|
||||
return 0;
|
||||
printf("Removing stale temporary file %s\n", fullpath);
|
||||
if (show_only || verbose)
|
||||
printf("Removing stale temporary file %s\n", fullpath);
|
||||
if (!show_only)
|
||||
unlink_or_warn(fullpath);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user