@@ -47,7 +47,7 @@ fn main() {
4747 let mut repo = Repo :: default ( ) ;
4848 if repo. has_no_available_forks ( ) {
4949 yellow_ln ! ( "There are no forks available which aren't already a remote:" ) ;
50- println ! ( "{}" , repo. git_remote_verbose_output( ) ) ;
50+ println ! ( "{}" , repo:: git_remote_verbose_output( ) ) ;
5151 return ;
5252 }
5353 repo. show_available_forks ( ) ;
@@ -61,7 +61,7 @@ fn main() {
6161/// Prints the help message.
6262fn print_help ( ) {
6363 print ! (
64- r# "
64+ r"
6565Add a remote fork to a local Git repository. When run from a Git repo, it queries GitLab or GitHub
6666for the full list of forks and offers simple choices for adding one under a local alias. The added
6767fork will be configured with a pull-url only; the push-url will be disabled.
@@ -76,24 +76,24 @@ be chosen as follows:
7676
7777* if there's only one fork available, it will be selected, or else
7878* the main fork/source owner if not already added locally, or else
79- * the fork indicated by the Git config value of "#
79+ * the fork indicated by the Git config value of "
8080 ) ;
8181 dark_cyan ! ( "add-remote.preferredFork" ) ;
8282 print ! (
83- r# " if set, and if that fork
83+ r" if set, and if that fork
8484 is not already added locally
8585
86- You can set "#
86+ You can set "
8787 ) ;
8888 dark_cyan ! ( "add-remote.preferredFork" ) ;
8989 println ! ( " (e.g. to 'CasperLabs') by running:\n " ) ;
9090 yellow_ln ! ( " git config --global --add add-remote.preferredFork CasperLabs" ) ;
9191 print ! (
92- r# "
92+ r"
9393Having chosen the fork to add, you will then be asked to provide an alias for it. Again, a default
9494value will be presented, chosen as follows:
9595
96- * if this is the main fork/source owner, uses the Git config value of "#
96+ * if this is the main fork/source owner, uses the Git config value of "
9797 ) ;
9898 dark_cyan_ln ! ( "add-remote.mainForkOwnerAlias" ) ;
9999 print ! (
@@ -102,18 +102,18 @@ value will be presented, chosen as follows:
102102 ) ;
103103 dark_cyan ! ( "add-remote.forkAlias" ) ;
104104 print ! (
105- r# " if set
105+ r" if set
106106* uses the fork-owner's name
107107
108- You can set "#
108+ You can set "
109109 ) ;
110110 dark_cyan ! ( "add-remote.mainForkOwnerAlias" ) ;
111111 println ! ( " (e.g. to 'owner') by running:\n " ) ;
112112 yellow_ln ! ( " git config --global --add add-remote.mainForkOwnerAlias owner" ) ;
113113 print ! (
114- r# "
114+ r"
115115Default aliases can be added to your .gitconfig file under the subkey
116- "#
116+ "
117117 ) ;
118118 dark_cyan ! ( "add-remote.forkAlias.<owner's name>" ) ;
119119 println ! ( " by running e.g:\n " ) ;
@@ -137,9 +137,9 @@ then add it **along with your GitHub username** separated with a colon ':' to yo
137137 ) ;
138138 yellow_ln ! ( " git config --global --add add-remote.gitHubToken <GitHub Username:GitHub Token's Value>" ) ;
139139 println ! (
140- r# "
140+ r"
141141Having run these Git config commands, your .gitconfig should contain the following:
142- "#
142+ "
143143 ) ;
144144 dark_green_ln ! (
145145 r#"[add-remote]
0 commit comments