Skip to content

Commit dc1ce0d

Browse files
committed
Rename to --digest-changes-only
1 parent bea51d0 commit dc1ce0d

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## [Unreleased]
44

55
- Fix `buf plugin push --label` to allow pushing a plugin with a label.
6-
- Add `--only-changes` flag to `buf registry {module,plugin} commit list` to filter
6+
- Add `--digest-changes-only` flag to `buf registry {module,plugin} commit list` to filter
77
out commits that have no digest changes.
88

99
## [v1.48.0] - 2024-12-19

private/buf/cmd/buf/command/registry/module/modulecommit/modulecommitlist/modulecommitlist.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
)
3333

3434
const (
35-
pageSizeFlagName = "page-size"
36-
pageTokenFlagName = "page-token"
37-
reverseFlagName = "reverse"
38-
formatFlagName = "format"
39-
onlyChangesFlagName = "only-changes"
35+
pageSizeFlagName = "page-size"
36+
pageTokenFlagName = "page-token"
37+
reverseFlagName = "reverse"
38+
formatFlagName = "format"
39+
digestChangesOnlyFlagName = "digest-changes-only"
4040

4141
defaultPageSize = 10
4242
)
@@ -68,11 +68,11 @@ If no reference is specified, it lists all commits in this module.
6868
}
6969

7070
type flags struct {
71-
Format string
72-
PageSize uint32
73-
PageToken string
74-
Reverse bool
75-
OnlyChanges bool
71+
Format string
72+
PageSize uint32
73+
PageToken string
74+
Reverse bool
75+
DigestChangesOnly bool
7676
}
7777

7878
func newFlags() *flags {
@@ -102,10 +102,10 @@ func (f *flags) Bind(flagSet *pflag.FlagSet) {
102102
fmt.Sprintf(`The output format to use. Must be one of %s`, bufprint.AllFormatsString),
103103
)
104104
flagSet.BoolVar(
105-
&f.OnlyChanges,
106-
onlyChangesFlagName,
105+
&f.DigestChangesOnly,
106+
digestChangesOnlyFlagName,
107107
false,
108-
`Only commits with changed digests. By default, all commits are listed`,
108+
`Only commits that have changed digests. By default, all commits are listed`,
109109
)
110110
}
111111

@@ -238,7 +238,7 @@ func run(
238238
},
239239
},
240240
Order: labelHistoryOrder,
241-
OnlyCommitsWithChangedDigests: flags.OnlyChanges,
241+
OnlyCommitsWithChangedDigests: flags.DigestChangesOnly,
242242
},
243243
),
244244
)

private/buf/cmd/buf/command/registry/plugin/plugincommit/plugincommitlist/plugincommitlist.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
)
3333

3434
const (
35-
pageSizeFlagName = "page-size"
36-
pageTokenFlagName = "page-token"
37-
reverseFlagName = "reverse"
38-
formatFlagName = "format"
39-
onlyChangesFlagName = "only-changes"
35+
pageSizeFlagName = "page-size"
36+
pageTokenFlagName = "page-token"
37+
reverseFlagName = "reverse"
38+
formatFlagName = "format"
39+
digestChangesOnlyFlagName = "digest-changes-only"
4040

4141
defaultPageSize = 10
4242
)
@@ -68,11 +68,11 @@ If no reference is specified, it lists all commits in this plugin.
6868
}
6969

7070
type flags struct {
71-
Format string
72-
PageSize uint32
73-
PageToken string
74-
Reverse bool
75-
OnlyChanges bool
71+
Format string
72+
PageSize uint32
73+
PageToken string
74+
Reverse bool
75+
DigestChangesOnly bool
7676
}
7777

7878
func newFlags() *flags {
@@ -105,10 +105,10 @@ func (f *flags) Bind(flagSet *pflag.FlagSet) {
105105
fmt.Sprintf(`The output format to use. Must be one of %s`, bufprint.AllFormatsString),
106106
)
107107
flagSet.BoolVar(
108-
&f.OnlyChanges,
109-
onlyChangesFlagName,
108+
&f.DigestChangesOnly,
109+
digestChangesOnlyFlagName,
110110
false,
111-
`Only commits with changed digests. By default, all commits are listed`,
111+
`Only commits that have changed digests. By default, all commits are listed`,
112112
)
113113
}
114114

@@ -242,7 +242,7 @@ func run(
242242
},
243243
},
244244
Order: labelHistoryOrder,
245-
OnlyCommitsWithChangedDigests: flags.OnlyChanges,
245+
OnlyCommitsWithChangedDigests: flags.DigestChangesOnly,
246246
},
247247
),
248248
)

0 commit comments

Comments
 (0)