Skip to contentSkip to conversation

Where does "git commit -q -m msg" spend time?

Q Junio C Hamano 1 participant 1 message Nov 19, 2022

lore
Share & tools
lore
#0 lore raw

On a slow filesystem it gets more noticeable, but I have been wondering (without a debugger or a profiler, as I am supposed to be on vacation) for the past few weeks why these two commands in the same repository perform very differently:

    $ git write-tree
    $ git commit -q -m msg

Especially even after running the former, running the latter, which I naïvely thought that it only needs to create a commit object with "msg" and wrapping the result of the former (which is more-or-less instant) into it, and do nothing else.