]> git.lizzy.rs Git - rust.git/commitdiff
create a commit with just changelog and Cargo.toml changes
authorOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Thu, 16 Feb 2017 08:49:47 +0000 (09:49 +0100)
committerOliver Schneider <git-spam-no-reply9815368754983@oli-obk.de>
Thu, 16 Feb 2017 08:49:47 +0000 (09:49 +0100)
.gitignore
pre_publish.sh
publish.files [new file with mode: 0644]

index 33ecb63593cd4a6db111b9b31738fe2b7c6147b6..7b8050a656334d0e76487475f02c5c390cac1011 100644 (file)
@@ -27,3 +27,5 @@ util/gh-pages/lints.json
 
 # rustfmt backups
 *.rs.bk
+
+helper.txt
index 960722c8c2a949c18bdf8e60a3a25523c972b21e..656ed6eff892340d47a03cfbd2090ec556ca2015 100755 (executable)
@@ -2,8 +2,22 @@
 
 set -e
 
-cd clippy_lints && cargo fmt && cd ..
-cargo fmt
-cargo test
 ./util/update_lints.py
 
+git status --short | sort | grep -v README.md | grep -v helper.txt > helper.txt
+
+# abort if the files differ
+diff "publish.files" "helper.txt"
+
+rm helper.txt
+
+# add all changed files
+git add .
+git commit -m "version bump"
+
+set +e
+
+cd clippy_lints && cargo fmt -- --write-mode=overwrite && cd ..
+cargo fmt -- --write-mode=overwrite
+
+echo "remember to add a git tag and running 'cargo test' before committing the rustfmt changes"
diff --git a/publish.files b/publish.files
new file mode 100644 (file)
index 0000000..9ee5044
--- /dev/null
@@ -0,0 +1,3 @@
+ M Cargo.toml
+ M CHANGELOG.md
+ M clippy_lints/Cargo.toml