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