On Tue, 15 Dec 2015 13:33:56 -0800 (PST) Ryan Milligan <cei...@gmail.com> wrote:
> Hello all, I’m not really sure how to quickly sum up the scenario I’m > trying to achieve here, so this is going to run a little bit long. > > Basically, I’ve run into several situations where I want to be able > to create a commit such that: [...] > So the question is, does something exist that can do something like > this already? If not, do the gurus think this would be a good fit for > a feature request? Sorry, I have no time ATM to read through the whole message but let me suggest to try out two things right away. First, for individual files, you can always use `git show` + shell redirection: git show $someRev:path/to/file >path/to/file would overwrite the file at path/to/file with its contents as found in commit $someRev. Second, you can still check your files out through the index while simply fooling Git about where the index is located: export GIT_INDEX_FILE=`mktemp /tmp/indexXXXXXX` git read-tree -i -u $revA rm -f "$GIT_INDEX_FILE" unset GIT_INDEX_FILE You can easily make a function out of this code and put it into your ~/.whateverrc -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.