Debian Codegraph @

maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gittest/readme.txt

raw
1 #######################################
2 Description of linear-changelog repository
3 #######################################
4
5 The 'linear-changelog' repositories in src/test/resources of git implementations has been created
6 - using the script below
7 - and then using a `clone --bare` command
8
9 - - - - - - - - - - - - - - - -
10 Repository structure
11 - - - - - - - - - - - - - - - -
12
13 $ git log --graph --format="%h - %s (authored) <%an> %ai (commited) <%cn> %ci"
14 * 464921b - action 5 (authored) <John Doe> 2017-10-01 12:00:00 +0000 (commited) <John Doe> 2017-10-10 12:00:00 +0000
15 * db46d63 - action 4 (authored) <John Doe> 2017-08-01 12:00:00 +0000 (commited) <John Doe> 2017-08-10 12:00:00 +0000
16 * e3864d9 - action 3 (authored) <John Doe> 2017-06-01 12:00:00 +0000 (commited) <John Doe> 2017-06-10 12:00:00 +0000
17 * 0f1e817 - action 2 (authored) <John Doe> 2017-04-01 12:00:00 +0000 (commited) <John Doe> 2017-04-10 12:00:00 +0000
18 * e75cb5a - action 1 (authored) <John Doe> 2017-02-01 12:00:00 +0000 (commited) <John Doe> 2017-02-10 12:00:00 +0000
19
20 - - - - - - - - - - - - - - - -
21 Creation script
22 - - - - - - - - - - - - - - - -
23 #!/bin/sh
24
25 cd /tmp
26 rm -rf linear-changelog
27 mkdir linear-changelog
28 cd linear-changelog
29 git init
30 git config user.name "John Doe"
31 git config user.email "[email protected]"
32
33 mkdir -p src/main/java
34 mkdir -p src/test/java
35
36 echo -n "/pom.xml" > pom.xml
37 echo -n "/readme.txt" > readme.txt
38 echo -n "/src/main/java/Application.java" > src/main/java/Application.java
39 echo -n "/src/test/java/Test.java" > src/test/java/Test.java
40
41 echo "## Linear changelog" >> README.md
42 git add .
43
44 echo "- 1" >> README.md
45 git add -u
46 git commit -m "action 1"
47 export GIT_AUTHOR_DATE="2017-02-01T12:00:00Z"
48 export GIT_COMMITTER_DATE="2017-02-10T12:00:00Z"
49 git commit --amend --no-edit --date "$GIT_AUTHOR_DATE"
50
51 echo "- 2" >> README.md
52 git add -u
53 git commit -m "action 2"
54 export GIT_AUTHOR_DATE="2017-04-01T12:00:00Z"
55 export GIT_COMMITTER_DATE="2017-04-10T12:00:00Z"
56 git commit --amend --no-edit --date "$GIT_AUTHOR_DATE"
57
58 echo "- 3" >> README.md
59 git add -u
60 git commit -m "action 3"
61 export GIT_AUTHOR_DATE="2017-06-01T12:00:00Z"
62 export GIT_COMMITTER_DATE="2017-06-10T12:00:00Z"
63 git commit --amend --no-edit --date "$GIT_AUTHOR_DATE"
64
65 echo "- 4" >> README.md
66 git add -u
67 git commit -m "action 4"
68 export GIT_AUTHOR_DATE="2017-08-01T12:00:00Z"
69 export GIT_COMMITTER_DATE="2017-08-10T12:00:00Z"
70 git commit --amend --no-edit --date "$GIT_AUTHOR_DATE"
71
72 echo "- 5" >> README.md
73 git add -u
74 git commit -m "action 5"
75 export GIT_AUTHOR_DATE="2017-10-01T12:00:00Z"
76 export GIT_COMMITTER_DATE="2017-10-10T12:00:00Z"
77 git commit --amend --no-edit --date "$GIT_AUTHOR_DATE"
78
79 unset GIT_COMMITTER_DATE
80
81 echo Repository created.
82 git log --graph --format="%h - %s (authored) <%an> %ai (commited) <%cn> %ci"
83