OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
doc
/
git
/
contrib
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📄
README
2.06 KB
05/29/2018 08:14:06 AM
rw-r--r--
📁
buildsystems
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
coccinelle
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
contacts
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📄
convert-grafts-to-replace-refs.sh
751 bytes
05/29/2018 08:14:06 AM
rw-r--r--
📁
credential
-
10/21/2019 03:49:22 PM
rwxr-xr-x
📁
diff-highlight
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
examples
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
fast-import
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
git-jump
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📄
git-resurrect.sh
4.29 KB
05/29/2018 08:14:06 AM
rw-r--r--
📁
git-shell-commands
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
hg-to-git
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
hooks
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
long-running-filter
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
persistent-https
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
remote-helpers
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📄
remotes2config.sh
770 bytes
05/29/2018 08:14:06 AM
rw-r--r--
📄
rerere-train.sh
1.57 KB
05/29/2018 08:14:06 AM
rw-r--r--
📁
stats
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
subtree
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
svn-fe
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
thunderbird-patch-inline
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
update-unicode
-
05/09/2024 07:13:18 AM
rwxr-xr-x
📁
workdir
-
05/09/2024 07:13:18 AM
rwxr-xr-x
Editing: convert-grafts-to-replace-refs.sh
Close
#!/bin/sh # You should execute this script in the repository where you # want to convert grafts to replace refs. GRAFTS_FILE="${GIT_DIR:-.git}/info/grafts" . $(git --exec-path)/git-sh-setup test -f "$GRAFTS_FILE" || die "Could not find graft file: '$GRAFTS_FILE'" grep '^[^# ]' "$GRAFTS_FILE" | while read definition do if test -n "$definition" then echo "Converting: $definition" git replace --graft $definition || die "Conversion failed for: $definition" fi done mv "$GRAFTS_FILE" "$GRAFTS_FILE.bak" || die "Could not rename '$GRAFTS_FILE' to '$GRAFTS_FILE.bak'" echo "Success!" echo "All the grafts in '$GRAFTS_FILE' have been converted to replace refs!" echo "The grafts file '$GRAFTS_FILE' has been renamed: '$GRAFTS_FILE.bak'"