{"thread":{"id":"37833","subject":"Safe to interrupt »git gc --auto«?","startedAt":"2014-10-29T15:06:36Z","lastAt":"2014-10-29T20:50:51Z","messageCount":2,"participants":["Thomas Schwinge","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"251177","messageId":"87fve6gbk3.fsf@kepler.schwinge.homeip.net","threadId":"37833","inReplyTo":null,"subject":"Safe to interrupt »git gc --auto«?","fromName":"Thomas Schwinge","fromEmail":"thomas@codesourcery.com","sentAt":"2014-10-29T15:06:36Z","receivedAt":"2014-10-29T15:06:36Z","isPatch":false,"sender":{"key":"thomas@codesourcery.com","avatar":null},"body":"Hi!\n\nI couldn't find this answered in the documentation: if, instead of\nexiting right away, a »git gc --auto« actually commences its housekeeping\ntasks, is it safe to interrupt (C-c, SIGINT) the original git invocation\nat this point, or might this cause any inconsistencies, data loss, or\nfailure to perform the task Git has originally been invoked for?  I\ngenerally do find the auto-housekeeping useful, just sometimes it happens\nat the \"wrong\" moment, and so I'd like to delay it until next time.\n\n\nGrüße,\n Thomas\n"},{"id":"251198","messageId":"20141029205051.GK5500@google.com","threadId":"37833","inReplyTo":"87fve6gbk3.fsf@kepler.schwinge.homeip.net","subject":"Re: Safe to interrupt »git gc --auto«?","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2014-10-29T20:50:51Z","receivedAt":"2014-10-29T20:50:51Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Thomas Schwinge wrote:\n\n> I couldn't find this answered in the documentation: if, instead of\n> exiting right away, a »git gc --auto« actually commences its housekeeping\n> tasks, is it safe to interrupt (C-c, SIGINT) the original git invocation\n> at this point, or might this cause any inconsistencies, data loss,\n[...]\n\nHeh.\n\nIf gc --auto happens in the middle of e.g. a rebase, then it's possible\nthat there were more commits that were supposed to happen later.  You'd\nneed to run 'git rebase --continue' after interrupting the gc in that\ncase.\n\nInterruption should never cause data loss, and as much as possible\ncommands should finish their work before running gc --auto.  Please\nlet us know if some command is violating that.\n\nThanks,\nJonathan\n"}]}