3 # Copyright (c) 2005 Junio C Hamano
6 test_description='More rename detection
12 'prepare reference tree' \
13 'cat ../../COPYING >COPYING &&
14 git-update-cache --add COPYING &&
15 tree=$(git-write-tree) &&
20 'sed -e 's/HOWEVER/However/' <COPYING >COPYING.1 &&
21 sed -e 's/GPL/G.P.L/g' <COPYING >COPYING.2 &&
23 git-update-cache --add --remove COPYING COPYING.?'
25 GIT_DIFF_OPTS=-u0 git-diff-cache -M $tree |
26 sed -e 's/\([0-9][0-9]*\)/#/g' >current &&
28 diff --git a/COPYING b/COPYING.#
35 - HOWEVER, in order to allow a migration to GPLv# if that seems like
36 + However, in order to allow a migration to GPLv# if that seems like
37 diff --git a/COPYING b/COPYING.#
44 - Note that the only valid version of the GPL as far as this project
45 + Note that the only valid version of the G.P.L as far as this project
47 - HOWEVER, in order to allow a migration to GPLv# if that seems like
48 + HOWEVER, in order to allow a migration to G.P.Lv# if that seems like
50 - This file is licensed under the GPL v#, or a later version
51 + This file is licensed under the G.P.L v#, or a later version
55 'validate output from rename/copy detection' \
56 'diff -u current expected'
59 'prepare work tree again' \
60 'mv COPYING.2 COPYING &&
61 git-update-cache --add --remove COPYING COPYING.1'
63 GIT_DIFF_OPTS=-u0 git-diff-cache -C $tree |
64 sed -e 's/\([0-9][0-9]*\)/#/g' >current
66 diff --git a/COPYING b/COPYING.#
73 - HOWEVER, in order to allow a migration to GPLv# if that seems like
74 + However, in order to allow a migration to GPLv# if that seems like
75 diff --git a/COPYING b/COPYING
79 - Note that the only valid version of the GPL as far as this project
80 + Note that the only valid version of the G.P.L as far as this project
82 - HOWEVER, in order to allow a migration to GPLv# if that seems like
83 + HOWEVER, in order to allow a migration to G.P.Lv# if that seems like
85 - This file is licensed under the GPL v#, or a later version
86 + This file is licensed under the G.P.L v#, or a later version
90 'validate output from rename/copy detection' \
91 'diff -u current expected'