Martin Frost
15886667da
Extract `with_git_repo_or_exit`
...
This function will come in handy when doing other actions with a git
repo, like when modifying a repository's config.
2020-06-19 13:23:56 +02:00
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
67f3f6b9b0
Add installation instructions to README
2020-05-24 13:31:01 +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
ea0bfc785d
Add TravisCI config
2020-05-23 23:41:18 +02:00
Martin Frost
b246b04c5a
Add README.md
2020-05-23 23:41:18 +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
e64c6d7b74
Tidy up git-solo
2020-05-23 21:04:51 +02:00
Martin Frost
c69cc0a9bc
git-delete-coauthor
2020-05-23 20:56:53 +02:00
Martin Frost
8e46759b0a
git-add-coauthor
2020-05-23 20:56:53 +02:00
Martin Frost
7b65f8e7b7
Write selected co-authors to .git/.gitmessage
2020-05-23 20:56:32 +02:00
Martin Frost
ee7c56e0a0
Extract with_repo_or_exit
...
This will run a given function in a git repo, or print an error message
and exit if the current working directory is not within a git repo.
2020-05-23 20:56:32 +02:00
Martin Frost
41908686ed
Extract gitmessage_template_file_path to lib
...
This piece of code will be used in a variety of places, so let's put it
somewhere where we can easily share it.
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
Martin Frost
0061c5b112
Move get_main_author -> lib.rs
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
Martin Frost
96d9ae2a48
Initial commit
2020-05-23 20:54:38 +02:00