Changeset c655525136b5…
Parent ce3b0c48905f…
by Benjamin Pollack <benjamin@fogcreek.com>
Changes to one file · Browse files at c655525136b5 Showing diff from parent ce3b0c48905f Diff from another changeset...
@@ -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":
|
Loading...