File: git-unlock

package info (click to toggle)
git-extras 7.4.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: sh: 4,312; python: 994; makefile: 146
file content (5 lines) | stat: -rwxr-xr-x 147 bytes parent folder | download | duplicates (3)
1
2
3
4
5
#!/usr/bin/env bash

filename="$1"
test -z "$filename" && echo "filename required." 1>&2 && exit 1
git update-index --no-skip-worktree "$filename"