summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-10-09 14:38:15 +0100
committerTom Hacohen <tom@stosb.com>2013-10-09 14:38:15 +0100
commitce52fae85bff30963fd42d14083a12605d9af230 (patch)
tree7bc78265b9d21ebfcde2badb769d11aa911004d2
parent39c68d11ff6d14773689b8faabdada202ce0f855 (diff)
Mention the need to merge rename_patch_by.sh with rename_authors.sh
-rw-r--r--README2
-rwxr-xr-xrename_patch_by.sh2
2 files changed, 3 insertions, 1 deletions
diff --git a/README b/README
index 3eb18c6..08edcd6 100644
--- a/README
+++ b/README
@@ -19,7 +19,7 @@ If you want to migrate a repository to Git:
19* Optional (2): Limit the repo to a subdirectory of interest 19* Optional (2): Limit the repo to a subdirectory of interest
20git filter-branch --prune-empty -f --subdirectory-filter some/subdirectory 20git filter-branch --prune-empty -f --subdirectory-filter some/subdirectory
21 21
22* Transform the authors 22* Transform the authors (script should be shared with attribute patch-by)
23> git filter-branch -f --env-filter 'eval $(/path/to/migration/rename_authors.sh)' HEAD 23> git filter-branch -f --env-filter 'eval $(/path/to/migration/rename_authors.sh)' HEAD
24 24
25* Attribute Patch by: 25* Attribute Patch by:
diff --git a/rename_patch_by.sh b/rename_patch_by.sh
index 349653c..4a36091 100755
--- a/rename_patch_by.sh
+++ b/rename_patch_by.sh
@@ -1,5 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# Should be merged with rename_authors.sh
4
3# Set correct author according to "Patch by:". 5# Set correct author according to "Patch by:".
4 6
5PATCH_BY=$(git log $GIT_COMMIT^..$GIT_COMMIT |grep "Patch by:") 7PATCH_BY=$(git log $GIT_COMMIT^..$GIT_COMMIT |grep "Patch by:")