mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
nightly: Temporarly delete commit message prompt from rules library (#45106)
Relevant for Nightly Users only, follow up to #45004. In case you use nightly this will break preview/stable since deserialisation will fail. Shipping this to Nightly so that staff does not run into this issue. We can revert this PR in the following days. I'll make a follow up PR which only stores the prompt in the database in case you customise it. Release Notes: - N/A
This commit is contained in:
parent
acae823fb1
commit
71e8b5504c
1 changed files with 2 additions and 18 deletions
|
|
@ -199,24 +199,8 @@ impl PromptStore {
|
|||
let metadata = db_env.create_database(&mut txn, Some("metadata.v2"))?;
|
||||
let bodies = db_env.create_database(&mut txn, Some("bodies.v2"))?;
|
||||
|
||||
// Insert default commit message prompt if not present
|
||||
if metadata.get(&txn, &PromptId::CommitMessage)?.is_none() {
|
||||
metadata.put(
|
||||
&mut txn,
|
||||
&PromptId::CommitMessage,
|
||||
&PromptMetadata {
|
||||
id: PromptId::CommitMessage,
|
||||
title: Some("Git Commit Message".into()),
|
||||
default: false,
|
||||
saved_at: Utc::now(),
|
||||
},
|
||||
)?;
|
||||
}
|
||||
if bodies.get(&txn, &PromptId::CommitMessage)?.is_none() {
|
||||
let commit_message_prompt =
|
||||
include_str!("../../git_ui/src/commit_message_prompt.txt");
|
||||
bodies.put(&mut txn, &PromptId::CommitMessage, commit_message_prompt)?;
|
||||
}
|
||||
metadata.delete(&mut txn, &PromptId::CommitMessage)?;
|
||||
bodies.delete(&mut txn, &PromptId::CommitMessage)?;
|
||||
|
||||
txn.commit()?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue