Commit Graph

18 Commits

Author SHA1 Message Date
Martin Frost a5e35b546f v0.4.2 - with submodules
Co-authored-by: Maria Hansson <mariahansson92@hotmail.com>
2022-05-13 18:46:27 +02:00
Martin Frost a7d930b216 Bump dependencies 2022-05-13 18:45:47 +02:00
Martin Frost 6820d9b3ae v0.4.1 - ^^ 2021-12-26 23:38:45 +01:00
Martin Frost 854526724b v0.4.0 - Manual override 2021-12-25 20:07:12 +01:00
Martin Frost 201bb55bd0 Add manual assets with manpages to .deb 2021-12-25 19:59:06 +01:00
Martin Frost 7b3a10890d Add clap 3.0.0-rc.4 2021-12-11 00:39:37 +01:00
Martin Frost ac1f066f43 Build .deb package 2021-08-24 00:08:06 +02:00
Martin Frost 8fc590906a v0.3.5 - More quiet
Co-authored-by: Maria Hansson <mariahansson92@hotmail.com>
2021-08-20 22:51:50 +02:00
Martin Frost 579a9d0ad4 Disable default-features for git2
The git2 default-features all have to do with ssh or ssh-keys. Those
require OpenSSL, which seems to be a bit tricky to get to compile
properly when cross-compiling on CI.

Also, since this project does not need those parts of the git2
dependency, we should be able to safely disable those features.

Co-authored-by: Maria Hansson <mariahansson92@hotmail.com>
2021-08-20 21:07:06 +02:00
Martin Frost e60fae7031 v0.3.4 - Print correct main author
This change makes `get_main_author` try to fetch `user.name` and
`user.email` from the current repo before falling back to a global
default.

Co-authored-by: Maria Hansson <mariahansson92@hotmail.com>
2020-11-10 13:35:45 +01:00
Martin Frost 4575605991 v0.3.3 - Ensure commit.template is set
We currently ensure this by simply overriding any existing template.

This is of course sub-optimal, but the previous recommendation, to
globally set `commit.template` to a relative path would otherwise make
`git commit` crash when run in a repo without first creating that
template file, e.g. by running `git mob ...` or `git solo` in the
project directory before committing anything.

This way, we don't have to globally set `commit.template`, and git-mob
will still work.
2020-10-24 18:21:32 +02:00
Martin Frost a5ff50fd1b v0.3.2 - Fix typo in README 2020-06-19 13:52:49 +02:00
Martin Frost 6d8df997d6 v0.3.1
Mention `git config commit.template` in README.
2020-06-19 13:49:03 +02:00
Martin Frost 5f88d5a029 v0.3.0 - Override main author
This change allows the `-o <initials>` flag to override who the main
author of any commits in this repo will be going forward.

What this actually does, is that it modifies the Repository's config
file to change the `user.name` and `user.email` like this.

Running `git mob -o ae be` (given the corresponding authors have been
configured using `git add-coauthor`) is equivalent to doing:

    git config user.name "Alice Example"
    git config user.email "alice@example.com"
    git mob be # be being the initials of "Bob Example" <bob@example.com>
2020-06-19 13:38:04 +02:00
Martin Frost 609cdf83d8 Add git-edit-coauthor command
It is now possible to edit the available co-authors, in case you
misspelled someone's name, or they change their email address, or
something.
2020-05-24 13:23:15 +02:00
Martin Frost 64f7a10cd1 Flesh out manifest with more info 2020-05-23 23:41:18 +02:00
Martin Frost de5af01d1f First draft of git-mob binary
It can:

* Parse the `~/.git-coauthors` file
* List available co-authors with --list
* Filter available co-authors given a list of initials, giving an error
  if no co-author matches a given initial
2020-05-23 20:56:32 +02:00
Martin Frost 8032a08656 Add working version of git-solo
`git-solo` clears the `.git/.gitmessage` commit message template in the
current git repository.

If the current working directory is not within a git repository, it will
print `Not in a git repository` on stderr and exit.
2020-05-23 20:56:32 +02:00