localCamliSource returns the path to the local Perkeep source tree that should be specified in *flagRev if *flagRev starts with "WIP:", empty string otherwise.
()
| 85 | // that should be specified in *flagRev if *flagRev starts with "WIP:", |
| 86 | // empty string otherwise. |
| 87 | func localCamliSource() string { |
| 88 | if !isWIP() { |
| 89 | return "" |
| 90 | } |
| 91 | return strings.TrimPrefix(*flagRev, "WIP:") |
| 92 | } |
| 93 | |
| 94 | func rev() string { |
| 95 | if isWIP() { |
no test coverage detected