Crates.io | git-author |
lib.rs | git-author |
version | 2.0.0 |
source | src |
created_at | 2019-12-02 13:22:19.128273 |
updated_at | 2020-01-08 04:24:10.942484 |
description | - You can get or set user.name and user.email at oece. - You can unset user.name and user.email at once. - You can replace the author or committer of past commits. |
homepage | |
repository | https://github.com/block-cube-lib/git-author-rs |
max_upload_size | |
id | 185912 |
size | 301,695 |
$ cargo install git-author
# get
$ git author [config file location]
$ git author get [config file location]
# set
$ git author set [config file location] <name> <email>
# unset
$ git author unset [config file location]
# replace-simple
$ git author replace simple <old-name> <old-email> [new-name] [new-email]
# replace-detail
$ git author replace detail --filter-author <name> <email> --filter-committer <name> <email> --replace-target <replace-target>
$ git author [config file location]
$ git author get [config file location]
You can get user.name and user.email.
$ git author set [config file location] <name> <email>
You can set user.name and user.eamil with git author set foo foo@abc.com
.
$ git author unset [config file location]
You can unset user.name and user.email.
$ git author replace simple <old-name> <old-email> [new-name] [new-email]
Replace the Author or Committer's old-name
with old-email
and new-name
with new-email
in the past commit.
If new-name and new-email are omitted, use the name and email that can be obtained with git author
.
$ git author replace detail --filter-author <name> <email> --filter-committer <name> <email> --replace-target <replace-target>
--filter-author <name> <email> filter with author. Required when `filter-committer` is not specified.
--filter-committer <name> <email> filter with committer. Required when `filter-author` is not specified.
--filter-type <filter-type> You can specify `and` or `or`. Valid only both `filter-author` and `filter-
committer` are specified. It is ignored at other times.
The defalut is `and`.
If `and` is specified, commits that match `author` and `committer` are
specified, and if `or` is specified, commits that match either `author` or
`committer` are included. [default: and]
--author <name> <email> author after replacement. If not specified, use author which can be
obrtained by `git author get`
--committer <name> <email> committer after replacement. If not specified, use author which can be
obrtained by `git author get`
--replace-target <replace-target> Replacement target. You can specify `author` or`committer` or `author-and-
committer`.
MIT