Hi, [...]
> 2. Use the `git-restore-mtime` command from the `git-tools` package. > This tool will reset the mtime for all the files tracked by git to the > timestamp of their last commit. And it is fast, it takes 16 seconds > for me on the guix repo (once guix shell is already cached). Eg.: > > ``` > guix shell git-tools -- git-restore-mtime Interesting trick; I didn't know of that one! One I usually do, if the branch I'm about to switch from is master or has just a few commits on top I can drop after, then I 'git rebase HEAD feature-branch' to rebase from it (HEAD) directly, which avoids invalidating the mtimes (which is what Make uses to determine whether a file must be rebuilt). -- Thanks, Maxim
