gimrr.git
5 years agogit-mr-update: add checks for mr ref
Frantisek Hrbata [Tue, 8 Dec 2020 16:56:11 +0000 (17:56 +0100)]
git-mr-update: add checks for mr ref

Also extend the current checks for other refs.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: check mr and user values while loading tags
Frantisek Hrbata [Tue, 8 Dec 2020 16:54:48 +0000 (17:54 +0100)]
mrlib: check mr and user values while loading tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-push: push mr ref with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:20:39 +0000 (14:20 +0100)]
git-mr-push: push mr ref with tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-fetch: fetch mr ref with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:19:51 +0000 (14:19 +0100)]
git-mr-fetch: fetch mr ref with tags

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-remove: remove mr ref along with tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:17:20 +0000 (14:17 +0100)]
git-mr-remove: remove mr ref along with tags

mr ref contains tags which cannot be modified, so remove it aloing
with tags.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-show: don't add mr and commit hash info to tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:13:17 +0000 (14:13 +0100)]
git-mr-show: don't add mr and commit hash info to tags

MR hash and commit hash tags are now added in mrlib.load_tags, so
there is no need to add them explicitly.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agomrlib: load commit tags from git in load_tags
Frantisek Hrbata [Tue, 8 Dec 2020 13:10:16 +0000 (14:10 +0100)]
mrlib: load commit tags from git in load_tags

Originally commit info, like subject, was stored as a tag and created
by git-mr-create. It looks like that calling git one more time does not
have such performance impact, so let's just load all the data from git.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: store mr tags to separate ref
Frantisek Hrbata [Tue, 8 Dec 2020 13:06:46 +0000 (14:06 +0100)]
git-mr-create: store mr tags to separate ref

Tags which cannot be changed, like base, commits or commits count, are
stored under new mr ref. Also don't store commit subjects and other
info in tags. Let's get them directly from git in mrlib.load_tags.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-show: add vn format
Frantisek Hrbata [Thu, 3 Dec 2020 17:43:29 +0000 (18:43 +0100)]
git-mr-show: add vn format

All tag values should have newlines escaped. This format allows
to diplay values with newline interpreted.

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: escape newline in all tags, not only in MR description
Frantisek Hrbata [Thu, 3 Dec 2020 17:25:51 +0000 (18:25 +0100)]
git-mr-create: escape newline in all tags, not only in MR description

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agogit-mr-create: add check for already existing MR
Frantisek Hrbata [Thu, 3 Dec 2020 13:27:20 +0000 (14:27 +0100)]
git-mr-create: add check for already existing MR

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>
5 years agoInitial commit
Frantisek Hrbata [Tue, 1 Dec 2020 13:23:13 +0000 (14:23 +0100)]
Initial commit

Signed-off-by: Frantisek Hrbata <frantisek@hrbata.com>