Kiln » gitkiln Read More
Clone URL:  
Pushed to one repository · View In Graph Contained in master

get commands back into alphabetical order

Changeset c655525136b5

Parent ce3b0c48905f

by Profile picture of User 12Benjamin Pollack <benjamin@fogcreek.com>

Changes to one file · Browse files at c655525136b5 Showing diff from parent ce3b0c48905f Diff from another changeset...

Change 1 of 2 Show Entire File main.go Stacked
 
147
148
149
150
151
152
153
154
155
156
157
158
 
204
205
206
 
 
 
 
 
 
207
208
209
 
147
148
149
 
 
 
 
 
 
150
151
152
 
198
199
200
201
202
203
204
205
206
207
208
209
@@ -147,12 +147,6 @@
  }     switch command { - case "annotate": - if ensureArgs(3, "you must provide at least one file to annotate") { - for _, file := range os.Args[2:len(os.Args)] { - k.BrowseAnnotatedFile(repoPath, file) - } - }   case "add-remote":   if len(os.Args) < 3 || len(os.Args) > 5 {   fmt.Fprintf(os.Stderr, "you must provide a repo to add as the remote") @@ -204,6 +198,12 @@
  out, err := exec.Command("git", "remote", "add", remoteName, remoteURL).CombinedOutput()   if err != nil || strings.HasPrefix(string(out), "fatal: ") {   fmt.Fprintf(os.Stderr, "could not add remote: %s", out) + } + } + case "annotate": + if ensureArgs(3, "you must provide at least one file to annotate") { + for _, file := range os.Args[2:len(os.Args)] { + k.BrowseAnnotatedFile(repoPath, file)   }   }   case "filehistory":