From c933219e15434a24ec45651e9c4df39fcaa5e96f Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Fri, 11 Aug 2017 19:49:36 +0200 Subject: [PATCH 1/5] Bump copyright date We neglected it in some places. --- src/logger.rs | 4 ++-- src/main.rs | 4 ++-- src/msgtree.rs | 4 ++-- src/write.rs | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/logger.rs b/src/logger.rs index e582380f..1cbc43f5 100644 --- a/src/logger.rs +++ b/src/logger.rs @@ -1,6 +1,6 @@ // git-dit - the distributed issue tracker for git -// Copyright (C) 2016 Matthias Beyer -// Copyright (C) 2016 Julian Ganz +// Copyright (C) 2016, 2017 Matthias Beyer +// Copyright (C) 2016, 2017 Julian Ganz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as diff --git a/src/main.rs b/src/main.rs index f3e7bf77..e479478e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ // git-dit - the distributed issue tracker for git -// Copyright (C) 2016 Matthias Beyer -// Copyright (C) 2016 Julian Ganz +// Copyright (C) 2016, 2017 Matthias Beyer +// Copyright (C) 2016, 2017 Julian Ganz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as diff --git a/src/msgtree.rs b/src/msgtree.rs index 9e162f34..74a3700c 100644 --- a/src/msgtree.rs +++ b/src/msgtree.rs @@ -1,6 +1,6 @@ // git-dit - the distributed issue tracker for git -// Copyright (C) 2016 Matthias Beyer -// Copyright (C) 2016 Julian Ganz +// Copyright (C) 2016, 2017 Matthias Beyer +// Copyright (C) 2016, 2017 Julian Ganz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as diff --git a/src/write.rs b/src/write.rs index c4f2a814..ddd2abb1 100644 --- a/src/write.rs +++ b/src/write.rs @@ -1,6 +1,6 @@ // git-dit - the distributed issue tracker for git -// Copyright (C) 2016 Matthias Beyer -// Copyright (C) 2016 Julian Ganz +// Copyright (C) 2016, 2017 Matthias Beyer +// Copyright (C) 2016, 2017 Julian Ganz // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as From 4b3a1e462cd8c3a0d89b4c60fbf99b482e4dc1b5 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Fri, 11 Aug 2017 19:50:12 +0200 Subject: [PATCH 2/5] Bump version of the library --- lib/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 11b9eb82..936cbb3e 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libgitdit" -version = "0.2.1" +version = "0.3.0" description = "A library for distributed issue tracking in git" authors = ["Matthias Beyer ", "Julian Ganz "] From ed191376272632d7d4ad91c6bd6e5b3fa060ef45 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Fri, 11 Aug 2017 19:52:34 +0200 Subject: [PATCH 3/5] Bump version of the binary --- Cargo.toml | 2 +- src/cli.yaml | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 70bdf6b2..99c8a1aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "git-dit" -version = "0.2.1" +version = "0.3.0" description = "A CLI frontend for libgitdit - a distributed issue tracker" authors = ["Matthias Beyer ", "Julian Ganz "] diff --git a/src/cli.yaml b/src/cli.yaml index 9b7e3e98..74c82935 100644 --- a/src/cli.yaml +++ b/src/cli.yaml @@ -1,5 +1,5 @@ name: git-dit -version: 0.2.1 +version: 0.3.0 authors: - Julian Ganz - Matthias Beyer @@ -23,7 +23,7 @@ subcommands: # Plumbing subcommands - check-message: about: This command checks the message in file for validity - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -36,7 +36,7 @@ subcommands: - check-refname: about: Checks whether a reference is a dit reference of a known type, by name - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -70,7 +70,7 @@ subcommands: Supplying an issue hash but no parent is considered an error. Returns (prints) the hash of the new commit. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -88,7 +88,7 @@ subcommands: - find-tree-init-hash: about: This command prints the init hash of the issue commit belongs to. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -103,7 +103,7 @@ subcommands: about: > Prints a log of commit tags, from the supplied issue head to the initial issue message. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -140,7 +140,7 @@ subcommands: - get-issue-tree-init-hashes: about: Lists all SHA1 hashes of all issues (introducing commit) - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -149,7 +149,7 @@ subcommands: # Porcelain subcommands - fetch: about: Fetch issues - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -179,7 +179,7 @@ subcommands: Perform garbage collection: delete references which are no longer required - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -208,7 +208,7 @@ subcommands: ()
More functionality may come and the output format may change. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -238,7 +238,7 @@ subcommands: - mirror: about: Clone issue references from remotes - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -287,7 +287,7 @@ subcommands: - new: about: Create a new bug report - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -343,7 +343,7 @@ subcommands: about: > Push all refs associated with issues. If no issue were supplied, all issues will be pushed. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -360,7 +360,7 @@ subcommands: - reply: about: Reply to a specific message in an issue. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -414,7 +414,7 @@ subcommands: - show: about: This uses 'git log' to print the issues. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz @@ -480,7 +480,7 @@ subcommands: part can be in quotes to permit spaces. Multiple -s are permitted, later specified values will override former. Alter tags of an issue. - version: 0.2.1 + version: 0.3.0 authors: - Matthias Beyer - Julian Ganz From da45de1d0a4b0a438465fb96afbdc397de103a13 Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Fri, 11 Aug 2017 19:53:19 +0200 Subject: [PATCH 4/5] Bump date in the manpage --- git-dit.1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-dit.1.md b/git-dit.1.md index 25a182b0..1842fd40 100644 --- a/git-dit.1.md +++ b/git-dit.1.md @@ -1,6 +1,6 @@ % GIT-DIT(1) User Manuals % Matthias Beyer, Julian Ganz -% July 16, 2017 +% August 13, 2017 # NAME From 33e81fd333cce7e2227b442c452ce2445cf40b2a Mon Sep 17 00:00:00 2001 From: Julian Ganz Date: Fri, 11 Aug 2017 19:59:54 +0200 Subject: [PATCH 5/5] Update ChangeLog --- CHANGELOG.md | 76 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1a3c39b..67cbb2c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,81 @@ # git-dit ChangeLog +## v0.3.0 (2017-08-13) + +### Binary + +Changes: + * "tag" now doesn't require a local head reference to be present in advance. + * "check-message" does not require a repository to be present any more. + +Added features: + * New git-config option "dit.remote-prios" controlling how remote references + are chosen for various actions. + * New "mirror" subcommand for mirroring remote references as local ones. + * New "gc" subcommand for collecting old references. + * New "check-refname" subcommand for extracting information from reference + names. + * The "list" subcommand now supports a small set simple filters for filtering + issues based on metadata. + * "get-issue-metadata" can now be used for querying a single piece of metadata. + * Example server-side update hook for a dit-only policy for repositories with + global unauthenticated push access. + +Bug-fixes: + * "fetch" and "push" tried fetching/pushing issues multiple times under some + circumstances. + * "list" and "get-issue-tree-init-hashes" reported issues multiple times under + some circumstances. + +### Library + +Changes: + * `RepositoryExt::issues_with_prefix()` and `RepositoryExt::issues()` now + return a unique set of issues. + * `Issue::update_head()` now takes an additional parameter controlling whether + an existing head reference is replaced. + * `Issue::messages_revwalk()` was replaced by new `Issue::messages()` function. + * `Issue::first_parent_revwalk()` was replaced by new + `Issue::first_parent_messages()` function. + * Function `Issue::find_local_head()` was renamed to `Issue::local_head()`. + * `Issue::local_refs()` now has an additional parameter controlling the type of + references returned. + * `Issue::issue_leaves()` was removed. + * `message::line` module was replaces by `message::block` module, including + associated types. + * `LineIteratorExt::categorized_lines()` was replaced by + `LineIteratorExt::line_blocks()`. + * `Message::categorized_body()` was replaced by `Message::body_blocks()`. + * `TrailerValue::append()` now operates in-place, on a mutable reference. + +Added features: + * New type `Messages` for iterating over messages. + * New function `Issue::terminated_messages()` for preparing a `Messages` + instance which terminates at the initial message. + * New function `Issue::messages_from()` for creating a `Messages` instance + returning messages from one specific commit to the initial message. + * New module `message::accumulation` for accumulating issue metadata. + * New module `message::metadata` providing specification of a small set of + predefined pieces of issue metadata + * New type `IssueRefType` representing the type of a reference (e.g. "head" or + "leaf"). + * New `PairsToTrailers` iterator for assembling trailers from key-value pairs. + * New `Issue::remote_refs()` and `Issue::all_refs()` functions for retrieving + references. + * Implemented `PartialEq`, `Eq` and `Hash` for `Issue`. + * Implemented `From` for `IssueMessagesIter`. + * Implemented `AsRef` for `TrailerKey` + +Bug-fixes: + * Fixed lifetimes of return values of several `Issue` functions. + +### Documentation + * Building the manpage is now controlled via the `manpage` feature rather than + an environment variable. + * The subcommand descriptions are now longer set as code snippets. + * Various small fixes and updates. + + ## v0.2.1 (2017-07-16) Changes: