Adding upstream version 0.13.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
1805ece79d
commit
d8f166e6bb
167 changed files with 15302 additions and 0 deletions
35
tools/create-test-repo.sh
Executable file
35
tools/create-test-repo.sh
Executable file
|
@ -0,0 +1,35 @@
|
|||
#!/bin/bash
|
||||
|
||||
RED="\033[31m"
|
||||
YELLOW="\033[33m"
|
||||
BLUE="\033[94m"
|
||||
GREEN="\033[32m"
|
||||
NO_COLOR="\033[0m"
|
||||
|
||||
CWD="$(pwd)"
|
||||
echo "pwd=$CWD"
|
||||
# Create the repo
|
||||
cd /tmp
|
||||
reponame=$(date +gitlint-test-%Y-%m-%d_%H-%M-%S)
|
||||
git init $reponame
|
||||
cd $reponame
|
||||
|
||||
# Do some basic config
|
||||
git config user.name gïtlint-test-user
|
||||
git config user.email gitlint@test.com
|
||||
git config core.quotePath false
|
||||
git config core.precomposeUnicode true
|
||||
|
||||
# Add a test commit
|
||||
echo "tëst 123" > test.txt
|
||||
git add test.txt
|
||||
# commit -m -> use multiple -m args to add multiple paragraphs (/n in strings are ignored)
|
||||
git commit -m "test cömmit title" -m "test cömmit body that has a bit more text"
|
||||
cd $CWD
|
||||
|
||||
# Let the user know
|
||||
echo ""
|
||||
echo -e "Created $GREEN/tmp/${reponame}$NO_COLOR"
|
||||
echo "Hit key up to access 'cd /tmp/$reponame'"
|
||||
echo "(Run this script using 'source' for this to work)"
|
||||
history -s "cd /tmp/$reponame"
|
Loading…
Add table
Add a link
Reference in a new issue