Debian Codegraph @

tests/inputs/issues/378/git_script.sh

raw
1 #!/bin/bash
2 mkdir repo378
3 cd repo378
4 git init
5 mkdir dir
6 echo "unsigned int test=0;" > dir/file1.c
7 printf "unsigned int test2=0;\n" > dir/file2.c
8 echo "unsigned int test3=0;" > dir/file3.c
9 git add --all
10 git commit -m "master commit1"
11 git checkout -b branch1
12 git mv dir/file2.c .
13 mkdir dir2
14 git mv dir/file3.c dir2/
15 git add --all
16 git commit -m "branch1 commit1"
17 cloc --git --ignore-whitespace --diff --by-file \
18 --report-file=/tmp/out1 --diff-alignment=/tmp/out2 \
19 `git show-ref -s master | head -1` `git show-ref -s | head -1`