From: Shawn O. Pearce Date: Fri, 20 Jul 2007 07:56:06 +0000 (-0400) Subject: git-gui: Skip unnecessary read-tree work during checkout X-Git-Tag: gitgui-0.8.0~23 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/dba07411da8debf9e39bf8d28f642b09c5794aff?ds=inline;hp=dba07411da8debf9e39bf8d28f642b09c5794aff git-gui: Skip unnecessary read-tree work during checkout I totally missed this obvious optimization in the checkout code path. If our current repository HEAD is actually at the commit we are moving to, and we agreed to perform this switch earlier, then we have no files to update in the working directory and any stale mtimes are simply not of consequence right now. We can pretend like we ran a read-tree and skip right into the post-read-tree work, such as updating the branch and setting the symbolic-ref. Signed-off-by: Shawn O. Pearce ---