Remove obsolete script to convert grafts to replace refs
The functionality is now implemented as `git replace --convert-graft-file`. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Apr 29, 2018 at 00:45 UTC
a3694d949fcd39f9a909cf762f698df8ce83215c
1 file changed
-28
contrib/convert-grafts-to-replace-refs.sh
deleted
-28
@@ -1,28 +0,0 @@
1
-#!/bin/sh
2
-
3
-# You should execute this script in the repository where you
4
-# want to convert grafts to replace refs.
5
-
6
-GRAFTS_FILE="${GIT_DIR:-.git}/info/grafts"
7
-
8
-. $(git --exec-path)/git-sh-setup
9
-
10
-test -f "$GRAFTS_FILE" || die "Could not find graft file: '$GRAFTS_FILE'"
11
-
12
-grep '^[^# ]' "$GRAFTS_FILE" |
13
-while read definition
14
-do
15
- if test -n "$definition"
16
- then
17
- echo "Converting: $definition"
18
- git replace --graft $definition ||
19
- die "Conversion failed for: $definition"
20
- fi
21
-done
22
-
23
-mv "$GRAFTS_FILE" "$GRAFTS_FILE.bak" ||
24
- die "Could not rename '$GRAFTS_FILE' to '$GRAFTS_FILE.bak'"
25
-
26
-echo "Success!"
27
-echo "All the grafts in '$GRAFTS_FILE' have been converted to replace refs!"
28
-echo "The grafts file '$GRAFTS_FILE' has been renamed: '$GRAFTS_FILE.bak'"