* Safe to interrupt »git gc --auto«?
@ 2014-10-29 15:06 Thomas Schwinge
2014-10-29 20:50 ` Jonathan Nieder
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Schwinge @ 2014-10-29 15:06 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 533 bytes --]
Hi!
I couldn't find this answered in the documentation: if, instead of
exiting right away, a »git gc --auto« actually commences its housekeeping
tasks, is it safe to interrupt (C-c, SIGINT) the original git invocation
at this point, or might this cause any inconsistencies, data loss, or
failure to perform the task Git has originally been invoked for? I
generally do find the auto-housekeeping useful, just sometimes it happens
at the "wrong" moment, and so I'd like to delay it until next time.
Grüße,
Thomas
[-- Attachment #2: Type: application/pgp-signature, Size: 472 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Safe to interrupt »git gc --auto«?
2014-10-29 15:06 Safe to interrupt »git gc --auto«? Thomas Schwinge
@ 2014-10-29 20:50 ` Jonathan Nieder
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Nieder @ 2014-10-29 20:50 UTC (permalink / raw)
To: Thomas Schwinge; +Cc: git
Thomas Schwinge wrote:
> I couldn't find this answered in the documentation: if, instead of
> exiting right away, a »git gc --auto« actually commences its housekeeping
> tasks, is it safe to interrupt (C-c, SIGINT) the original git invocation
> at this point, or might this cause any inconsistencies, data loss,
[...]
Heh.
If gc --auto happens in the middle of e.g. a rebase, then it's possible
that there were more commits that were supposed to happen later. You'd
need to run 'git rebase --continue' after interrupting the gc in that
case.
Interruption should never cause data loss, and as much as possible
commands should finish their work before running gc --auto. Please
let us know if some command is violating that.
Thanks,
Jonathan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-29 20:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 15:06 Safe to interrupt »git gc --auto«? Thomas Schwinge
2014-10-29 20:50 ` Jonathan Nieder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).