Merge pull request #1370 from matthiasbeyer/minor

Minor
This commit is contained in:
Matthias Beyer 2018-04-07 10:51:21 +02:00 committed by GitHub
commit 7549cc209a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 1 deletions

View file

@ -8,8 +8,8 @@ dist:
language: rust language: rust
rust: rust:
- 1.22.1
- 1.23.0 - 1.23.0
- 1.24.0
- stable - stable
cache: cache:

View file

@ -48,6 +48,8 @@ This section contains the changelog from the last release to the next release.
* `libimagrt` allows external subcommands now in the default clap app * `libimagrt` allows external subcommands now in the default clap app
builder helper. It also provides a helper for handling unknown builder helper. It also provides a helper for handling unknown
subcommands: `Runtime::handle_unknown_subcommand()`. See docs for details. subcommands: `Runtime::handle_unknown_subcommand()`. See docs for details.
* `imag-link list` prints output in ascii-table now, use `--plain` to print
as plain text.
* Minor changes * Minor changes
* A license-checker was included into the CI setup, which checks whether all * A license-checker was included into the CI setup, which checks whether all
".rs"-files have the license header at the top of the file ".rs"-files have the license header at the top of the file
@ -68,6 +70,12 @@ This section contains the changelog from the last release to the next release.
editor object editor object
* `libimagentryref` got a utility function for making an entry a ref. * `libimagentryref` got a utility function for making an entry a ref.
* `libimaghabit` got `Habit::instance_exists_for_date()` * `libimaghabit` got `Habit::instance_exists_for_date()`
* `imag contact find` understands `--format` now.
* `imag contact` uses ", " as seperator for output of lists of values.
* `imag contact find --id / --full-id` was added for printing Store Id /
Filepath of found contacts.
* `imag view` can now view multiple entries at once
* `imag view -I` reads store ids from stdin now.
* Bugfixes * Bugfixes
* imag does not panic anymore when piping and breaking that pipe, for * imag does not panic anymore when piping and breaking that pipe, for
example like with `imag store ids | head -n 1`. example like with `imag store ids | head -n 1`.
@ -95,6 +103,7 @@ This section contains the changelog from the last release to the next release.
not allocated properly. not allocated properly.
* `libimagstore::store::Store::create` overwrote existing entries. * `libimagstore::store::Store::create` overwrote existing entries.
* `libimaghabit::habit::HabitTemplate` did not link new instances. * `libimaghabit::habit::HabitTemplate` did not link new instances.
* `imag-init` creates `~/.imag` but not `~/.imag/store`.
## 0.6.3 ## 0.6.3

16
scripts/gen-changelog Normal file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
since="$1"
if [[ -z "$since" ]]; then
echo "Usage: $0 [since]"
exit 1
fi
for rev in $(git rev-list "$since"..HEAD | tac); do
if git notes --ref=changelog list $rev &> /dev/null; then
output=$(git notes --ref=changelog show $rev | sed '2,$s/^/ /')
echo "* $output"
fi
done

12
scripts/which-commands-changed Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Find all imag commands which changed since last install
imag versions |\
grep "imag-" |\
sed 's,v.*-g,,' |\
while read binary hash; do
git diff "$hash..master" --name-only | \
grep "$binary" >/dev/null 2>/dev/null && \
echo "$binary changed since last install (was $hash)"
done