executable_git-changelog-symlink-init.sh 223 B

1234567891011
  1. #!/usr/bin/env bash
  2. # Initialize current Git directory for vc-dwim
  3. d=.git/c
  4. test -d .git || return 1
  5. mkdir $d
  6. touch $d/ChangeLog
  7. (cd $d && git init && git add ChangeLog && git commit -m. -a)
  8. ln --backup -s $d/ChangeLog .