@@ -70,9 +70,9 @@ struct Add {
7070 ) ]
7171 branch : Option < String > ,
7272
73- /// Checkout a specific revision .
73+ /// Checkout a specific commit .
7474 #[ structopt( long, value_name = "SHA" , group = "git-reference" ) ]
75- revision : Option < String > ,
75+ rev : Option < String > ,
7676
7777 /// Checkout a specific tag.
7878 #[ structopt( long, value_name = "TAG" , group = "git-reference" ) ]
@@ -212,16 +212,16 @@ impl Plugin {
212212 local,
213213 protocol,
214214 branch,
215- revision ,
215+ rev ,
216216 tag,
217217 directory,
218218 uses,
219219 apply,
220220 } = add;
221221
222- let reference = match ( branch, revision , tag) {
222+ let reference = match ( branch, rev , tag) {
223223 ( Some ( s) , None , None ) => Some ( GitReference :: Branch ( s) ) ,
224- ( None , Some ( s) , None ) => Some ( GitReference :: Revision ( s) ) ,
224+ ( None , Some ( s) , None ) => Some ( GitReference :: Rev ( s) ) ,
225225 ( None , None , Some ( s) ) => Some ( GitReference :: Tag ( s) ) ,
226226 ( None , None , None ) => None ,
227227 // this is unreachable because these three options are in the same mutually exclusive
@@ -522,7 +522,7 @@ OPTIONS:
522522 --local <DIR> Add a local directory
523523 --protocol <PROTO> The Git protocol for a Gist or GitHub plugin
524524 --branch <BRANCH> Checkout the tip of a branch
525- --revision <SHA> Checkout a specific revision
525+ --rev <SHA> Checkout a specific commit
526526 --tag <TAG> Checkout a specific tag
527527 --directory <PATH> Which sub directory to use in this plugin
528528 --use <MATCH>... Which files to use in this plugin
@@ -556,7 +556,7 @@ ARGS:
556556 "test" ,
557557 "--git" ,
558558 "https://github.com/rossmacarthur/sheldon-test" ,
559- "--revision " ,
559+ "--rev " ,
560560 "ad149784a1538291f2477fb774eeeed4f4d29e45" ,
561561 "--directory" ,
562562 "missing" ,
@@ -581,7 +581,7 @@ ARGS:
581581 local: None ,
582582 protocol: None ,
583583 branch: None ,
584- revision : Some ( "ad149784a1538291f2477fb774eeeed4f4d29e45" . into( ) ) ,
584+ rev : Some ( "ad149784a1538291f2477fb774eeeed4f4d29e45" . into( ) ) ,
585585 tag: None ,
586586 directory: Some ( "missing" . into( ) ) ,
587587 uses: Some ( vec_into![ "{name}.sh" , "*.zsh" ] ) ,
@@ -622,7 +622,7 @@ ARGS:
622622 local: None ,
623623 protocol: Some ( "ssh" . parse( ) . unwrap( ) ) ,
624624 branch: None ,
625- revision : None ,
625+ rev : None ,
626626 tag: Some ( "0.1.0" . into( ) ) ,
627627 directory: Some ( "missing" . into( ) ) ,
628628 uses: Some ( vec_into![ "{name}.sh" , "*.zsh" ] ) ,
@@ -663,7 +663,7 @@ ARGS:
663663 local: None ,
664664 protocol: Some ( "https" . parse( ) . unwrap( ) ) ,
665665 branch: Some ( "feature" . into( ) ) ,
666- revision : None ,
666+ rev : None ,
667667 tag: None ,
668668 directory: Some ( "missing" . into( ) ) ,
669669 uses: Some ( vec_into![ "{name}.sh" , "*.zsh" ] ) ,
@@ -698,7 +698,7 @@ ARGS:
698698 local: None ,
699699 protocol: None ,
700700 branch: None ,
701- revision : None ,
701+ rev : None ,
702702 tag: None ,
703703 directory: None ,
704704 uses: Some ( vec_into![ "{name}.sh" , "*.zsh" ] ) ,
@@ -733,7 +733,7 @@ ARGS:
733733 local: Some ( "~/.dotfiles/zsh/pure" . into( ) ) ,
734734 protocol: None ,
735735 branch: None ,
736- revision : None ,
736+ rev : None ,
737737 tag: None ,
738738 directory: None ,
739739 uses: Some ( vec_into![ "{name}.sh" , "*.zsh" ] ) ,
0 commit comments