Gentoo Archives: gentoo-dev

From: "W. Trevor King" <wking@×××××××.us>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Git copy detection (was: My masterplan for git migration...)
Date: Thu, 18 Sep 2014 20:08:30
Message-Id: 20140918200811.GU5139@odin.tremily.us
In Reply to: Re: [gentoo-dev] My masterplan for git migration (+ looking for infra to test it) by Diamond
1 On Thu, Sep 18, 2014 at 11:33:40PM +0400, Diamond wrote:
2 > Lets assume, that I don't want to scrap old ebuild yet. There's no git
3 > cp command. git mv is just git rm + git add. That's what does it look
4 > like (usual revbump with git add in reality):
5 > https://github.com/cerebrum/dr/commit/311df9b04d876f5847416fe5ba699edfab50adb6
6
7 Git can check for copies if you like:
8
9 $ git clone git://github.com/cerebrum/dr.git
10 $ cd dr/
11 $ git show --find-copies-harder 311df9b04
12 commit 311df9b04d876f5847416fe5ba699edfab50adb6
13
14 diff --git a/games-strategy/openra/openra-20140608.ebuild b/games-strategy/openra/openra-20140722.ebuild
15 similarity index 100%
16 copy from games-strategy/openra/openra-20140608.ebuild
17 copy to games-strategy/openra/openra-20140722.ebuild
18
19 Cheers,
20 Trevor
21
22 --
23 This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
24 For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies