Add --branch flag
Dependencies
- [2]
P2B4ZSO5Include file content - [3]
534I6MRXAdd --channel flag - [4]
DKHKVC66Add a README - [5]
5ETDKF5FStart on data structures to represent fast-export stream - [*]
Y7VFVY6EInitial dummy version - [*]
RTQQLOCOUse real metadata, but no content yet
Change contents
- edit in main.go at line 16
var branch = flag.String("branch", "", "destination branch in Git (default is the same as channel)") - edit in main.go at line 49[8.422][8.422]
if *branch == "" {*branch = *channel} - edit in main.go at line 106[5.109][8.1392]
commit.Branch = *branch - edit in fast-export.go at line 22
Branch string - replacement in fast-export.go at line 31
if _, err := fmt.Fprintln(w, "commit refs/heads/master"); err != nil {if _, err := fmt.Fprintln(w, "commit refs/heads/"+c.Branch); err != nil { - replacement in README.md at line 15
The result is a Git repository with a single branch (master),The result is a Git repository with a single branch (main), - replacement in README.md at line 18
(If you want to use a different channel, specify it with `--channel`.)[4.397](If you want to use a different channel, specify it with `--channel`.The destination branch will have the same name as the source channel,unless you specify it with `--branch`.)