mdk icon indicating copy to clipboard operation
mdk copied to clipboard

Prevent git gc to run automatically

Open FMCorz opened this issue 12 years ago • 4 comments

Some commands will trigger git gc which can take a very long time to be done. Preventing this would be useful.

FMCorz avatar Feb 27 '13 01:02 FMCorz

Or just detect it and print a message (showing the output would be the best).

damyon avatar Feb 27 '13 01:02 damyon

I would prefer for you to print out all standard output (if its possible) because surely git gc is not the only thing which could happen.

danpoltawski avatar Feb 27 '13 01:02 danpoltawski

To disable it, you have to git config --global gc.auto 0. I also think that the best would surely be to show the output from Git, but that requires some more work as at current, I am reading the entire output before eventually working on it. Needs more thoughts.

Though I've been working on some improvements and am using the module logging to set different level of loggings and eventually different logging handlers (for now stdout being used), this could certainly be used here.

FMCorz avatar Mar 04 '13 15:03 FMCorz

Hint: Read "man tee"

On Mon, Mar 4, 2013 at 11:36 PM, Frédéric Massart [email protected]:

To disable it, you have to git config --global gc.auto 0. I also think that the best would surely be to show the output from Git, but that requires some more work as at current, I am reading the entire output before eventually working on it. Needs more thoughts.

Though I've been working on some improvements and am using the module logging to set different level of loggings and eventually different logging handlers (for now stdout being used), this could certainly be used here.

— Reply to this email directly or view it on GitHubhttps://github.com/FMCorz/mdk/issues/18#issuecomment-14386508 .

damyon avatar Mar 05 '13 00:03 damyon