Commit Graph

4 Commits

Author SHA1 Message Date
Martin Frost 747e19828c Wrap gitmessage template path in closure
Since the only thing the `repo` argument to `with_repo_or_exit` was used
for, was to extract the gitmessage template path from it, we can just do
that directly instead.
2020-05-24 13:48:51 +02:00
Martin Frost 934405ad4b Tidy up write_coauthors_to_gitmessage_file
* Inline closure
* Do some actual error handling
2020-05-23 21:05:04 +02:00
Martin Frost 7b65f8e7b7 Write selected co-authors to .git/.gitmessage 2020-05-23 20:56:32 +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