From a9c9d1c3a20af5779145dbba8cdfbf0d1fbb960f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 5 Aug 2020 22:21:44 +0200 Subject: Rename the project `git-suggestion` Since this is a Git command, this makes more sense to me. --- README.md | 12 ++++++------ doc/git-sugapply.1 | 8 ++++---- doc/git-sugapply.1.txt | 4 ++-- doc/git-sugpatch.1 | 8 ++++---- doc/git-sugpatch.1.txt | 4 ++-- github-suggestion/src/url.rs | 2 +- src/owner_repo.rs | 6 +++--- 7 files changed, 22 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 4d90d54..3304558 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -github-suggestion -================= +git-suggestion +============== Diffs and patches for GitHub pull request suggestions. Given a suggestion ID, get a unified diff of the suggested change, or apply it directly to the working @@ -61,18 +61,18 @@ copy in a Git repository. ## Install -On Mac OS X, GitHub-Suggestion can be installed with Homebrew: +On Mac OS X, Git-Suggestion can be installed with Homebrew: - $ brew install teddywing/formulae/github-suggestion + $ brew install teddywing/formulae/git-suggestion To compile from source or install on other platforms: - $ cargo install --git https://github.com/teddywing/github-suggestion.git --root /usr/local + $ cargo install --git https://github.com/teddywing/git-suggestion.git --root /usr/local ## Uninstall - $ cargo uninstall --root /usr/local github-suggestion + $ cargo uninstall --root /usr/local git-suggestion ## License diff --git a/doc/git-sugapply.1 b/doc/git-sugapply.1 index 477714a..d9eb195 100644 --- a/doc/git-sugapply.1 +++ b/doc/git-sugapply.1 @@ -2,12 +2,12 @@ .\" Title: git-sugapply .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 -.\" Date: 08/04/2020 +.\" Date: 08/06/2020 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "GIT\-SUGAPPLY" "1" "08/04/2020" "\ \&" "\ \&" +.TH "GIT\-SUGAPPLY" "1" "08/06/2020" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -94,7 +94,7 @@ Suggestion references can be specified either as URLs: .RS 4 .\} .nf -$ git sugapply https://github\&.com/teddywing/github\-suggestion/pull/1#discussion_r459691747 +$ git sugapply https://github\&.com/teddywing/git\-suggestion/pull/1#discussion_r459691747 .fi .if n \{\ .RE @@ -118,7 +118,7 @@ They can also be mixed: .RS 4 .\} .nf -$ git sugapply 459692838 https://github\&.com/teddywing/github\-suggestion/pull/1#discussion_r459691747 +$ git sugapply 459692838 https://github\&.com/teddywing/git\-suggestion/pull/1#discussion_r459691747 .fi .if n \{\ .RE diff --git a/doc/git-sugapply.1.txt b/doc/git-sugapply.1.txt index 31c677f..d513505 100644 --- a/doc/git-sugapply.1.txt +++ b/doc/git-sugapply.1.txt @@ -56,7 +56,7 @@ EXAMPLES -------- Suggestion references can be specified either as URLs: - $ git sugapply https://github.com/teddywing/github-suggestion/pull/1#discussion_r459691747 + $ git sugapply https://github.com/teddywing/git-suggestion/pull/1#discussion_r459691747 or as comment IDs: @@ -64,7 +64,7 @@ or as comment IDs: They can also be mixed: - $ git sugapply 459692838 https://github.com/teddywing/github-suggestion/pull/1#discussion_r459691747 + $ git sugapply 459692838 https://github.com/teddywing/git-suggestion/pull/1#discussion_r459691747 SEE ALSO -------- diff --git a/doc/git-sugpatch.1 b/doc/git-sugpatch.1 index 0a74b4c..6f5ad15 100644 --- a/doc/git-sugpatch.1 +++ b/doc/git-sugpatch.1 @@ -2,12 +2,12 @@ .\" Title: git-sugpatch .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 -.\" Date: 08/04/2020 +.\" Date: 08/06/2020 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "GIT\-SUGPATCH" "1" "08/04/2020" "\ \&" "\ \&" +.TH "GIT\-SUGPATCH" "1" "08/06/2020" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -94,7 +94,7 @@ Suggestion references can be specified either as URLs: .RS 4 .\} .nf -$ git sugpatch https://github\&.com/teddywing/github\-suggestion/pull/1#discussion_r459691747 +$ git sugpatch https://github\&.com/teddywing/git\-suggestion/pull/1#discussion_r459691747 .fi .if n \{\ .RE @@ -118,7 +118,7 @@ They can also be mixed: .RS 4 .\} .nf -$ git sugpatch 459692838 https://github\&.com/teddywing/github\-suggestion/pull/1#discussion_r459691747 +$ git sugpatch 459692838 https://github\&.com/teddywing/git\-suggestion/pull/1#discussion_r459691747 .fi .if n \{\ .RE diff --git a/doc/git-sugpatch.1.txt b/doc/git-sugpatch.1.txt index 5076f64..c1513a4 100644 --- a/doc/git-sugpatch.1.txt +++ b/doc/git-sugpatch.1.txt @@ -55,7 +55,7 @@ EXAMPLES -------- Suggestion references can be specified either as URLs: - $ git sugpatch https://github.com/teddywing/github-suggestion/pull/1#discussion_r459691747 + $ git sugpatch https://github.com/teddywing/git-suggestion/pull/1#discussion_r459691747 or as comment IDs: @@ -63,7 +63,7 @@ or as comment IDs: They can also be mixed: - $ git sugpatch 459692838 https://github.com/teddywing/github-suggestion/pull/1#discussion_r459691747 + $ git sugpatch 459692838 https://github.com/teddywing/git-suggestion/pull/1#discussion_r459691747 SEE ALSO -------- diff --git a/github-suggestion/src/url.rs b/github-suggestion/src/url.rs index 0ff7baa..413a37d 100644 --- a/github-suggestion/src/url.rs +++ b/github-suggestion/src/url.rs @@ -47,7 +47,7 @@ pub struct SuggestionUrl { } /// Parses a URL with the format -/// `https://github.com/teddywing/github-suggestion/pull/1#discussion_r459691747`. +/// `https://github.com/teddywing/git-suggestion/pull/1#discussion_r459691747`. impl FromStr for SuggestionUrl { type Err = Error; diff --git a/src/owner_repo.rs b/src/owner_repo.rs index 273ef6f..04839fc 100644 --- a/src/owner_repo.rs +++ b/src/owner_repo.rs @@ -56,8 +56,8 @@ pub struct OwnerRepo { } /// Parse an owner-repo pair from a Git remote. Can be either an HTTP URL -/// (`https://github.com/teddywing/github-suggestion.git`) or an SSH-style -/// reference (`git@github.com:teddywing/github-suggestion.git`). +/// (`https://github.com/teddywing/git-suggestion.git`) or an SSH-style +/// reference (`git@github.com:teddywing/git-suggestion.git`). impl FromStr for OwnerRepo { type Err = OwnerRepoError; @@ -108,7 +108,7 @@ impl OwnerRepo { } /// Parse an `OwnerRepo` from an SSH-style reference - /// (`git@github.com:teddywing/github-suggestion.git`). + /// (`git@github.com:teddywing/git-suggestion.git`). pub fn from_ssh(ssh: &str) -> Result { let address_path: Vec<_> = ssh.splitn(2, ':').collect(); let path = address_path.get(1) -- cgit v1.2.3