go-git-http icon indicating copy to clipboard operation
go-git-http copied to clipboard

Add AutoCreate option

Open davidbanham opened this issue 8 years ago • 2 comments

This flag allows unknown repositories to be automatically created on push or pull

davidbanham avatar Feb 02 '17 12:02 davidbanham

Apologies for the drive-by PR. This functionality is useful to me so I added it in, thought I'd create the PR as a courtesy in case it might also be useful to the project authors. Feel free to merge if useful or close if not.

Cheers for creating and publishing the library. Much appreciated!

davidbanham avatar Feb 02 '17 12:02 davidbanham

Thanks for the style tip. I'm still reasonably new to Go so getting the hang of the idioms.

On taking a closer look at the other open PRs on the repo it looks like the functionality I'm adding here is actually a subset of #21 which itself is a subset of #27. This functionality could be implemented as a custom function passed to either one of those variants.

davidbanham avatar Feb 02 '17 22:02 davidbanham