From: Andreas Schwab <schwab@linux-m68k.org>
To: Fredrik Gustafsson <iveqy@iveqy.com>
Cc: Dario Rodriguez <soft.d4rio@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: Checkout first version of each file?
Date: Tue, 08 Nov 2011 19:15:14 +0100 [thread overview]
Message-ID: <m239dypjkd.fsf@igel.home> (raw)
In-Reply-To: <20111108150007.GA5261@kolya> (Fredrik Gustafsson's message of "Tue, 8 Nov 2011 16:00:07 +0100")
Fredrik Gustafsson <iveqy@iveqy.com> writes:
> #!/bin/sh
> git reset --hard HEAD
> for f in `find`
git ls-files
> do
> commit=`git log $f | grep commit | tail -1`
git rev-list HEAD -- $f | tail -1
> git checkout $commit $f
> done
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2011-11-08 18:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 13:58 Checkout first version of each file? Dario Rodriguez
2011-11-08 14:02 ` Fredrik Gustafsson
2011-11-08 14:17 ` Dario Rodriguez
2011-11-08 15:00 ` Fredrik Gustafsson
2011-11-08 17:20 ` Dario Rodriguez
2011-11-08 18:15 ` Andreas Schwab [this message]
2011-11-08 18:49 ` Dario Rodriguez
2011-11-08 17:44 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m239dypjkd.fsf@igel.home \
--to=schwab@linux-m68k.org \
--cc=git@vger.kernel.org \
--cc=iveqy@iveqy.com \
--cc=soft.d4rio@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).