-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Buf sync: support module identity overrides (#2356)
Accept an **optional** module identity override for the module flag. This is useful when syncing a repository, to set a target module identity, regardless of what HEAD content has. This will be useful for dog fooding the sync command on our own repos, or other community repositories with valid Buf modules, in case we don't want or can't write to the git history, but still want to sync all activity across all branches. Before: ```sh buf alpha repo sync \ # This would read the module name in the HEAD commit, # and only sync commits back in time that matched that name. --module my/proto/dir ``` Now: ```sh buf alpha repo sync \ # This will read the module name in the HEAD commit, # and only sync commits back in time that matched that name. --module my/proto/dir # This will use "buf.build/acme/foo" as the module target # identity for all branches, regardless of the module name # they have in the git commits, or even if they are unnamed. --module other/proto/dir:buf.build/acme/foo ```
- Loading branch information
1 parent
25da2f0
commit af32dec
Showing
4 changed files
with
318 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.