diff options
author | Kim Altintop <kim@eagain.io> | 2023-03-29 13:20:08 +0200 |
---|---|---|
committer | Kim Altintop <kim@eagain.io> | 2023-03-29 13:20:08 +0200 |
commit | a483cc97d56a770c4ccf91dfccf790a8c2d0c9fa (patch) | |
tree | abe1fc1860def1b5f2cceae4c4da003c2f60705d /src/cmd/drop | |
parent | a4d2d6ac8acb34314fba166d5b85ff06c97f0ca3 (diff) |
core: version each metadata type separately
It turns out to be preferable to be able to break one type without
affecting the other.
So instead of the global SpecVersion, use a separate FmtVersion for each
type. For compatibility, keep supporting spec_version fields (until next
major bump of the respective types' version).
Signed-off-by: Kim Altintop <kim@eagain.io>
Diffstat (limited to 'src/cmd/drop')
-rw-r--r-- | src/cmd/drop/init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/drop/init.rs b/src/cmd/drop/init.rs index b843255..a1c5025 100644 --- a/src/cmd/drop/init.rs +++ b/src/cmd/drop/init.rs @@ -121,7 +121,7 @@ pub fn init(args: Init) -> cmd::Result<Output> { let default_branch = cfg::git::default_branch(&cfg)?; metadata::Drop { - spec_version: crate::SPEC_VERSION, + fmt_version: Default::default(), description: args.description, prev: None, custom: Default::default(), |