File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,6 +164,11 @@ def __call__(
164164 "type" : int ,
165165 "help" : "Set the length limit of the commit message; 0 for no limit." ,
166166 },
167+ {
168+ "name" : ["--preview" ],
169+ "action" : "store_true" ,
170+ "help" : "Show live first-line (subject) preview while typing." ,
171+ },
167172 {
168173 "name" : ["--" ],
169174 "action" : "store_true" ,
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ class Settings(TypedDict, total=False):
6565 version_type : str | None
6666 version : str | None
6767 breaking_change_exclamation_in_title : bool
68+ preview : bool
6869
6970
7071CONFIG_FILES : tuple [str , ...] = (
@@ -115,6 +116,7 @@ class Settings(TypedDict, total=False):
115116 "extras" : {},
116117 "breaking_change_exclamation_in_title" : False ,
117118 "message_length_limit" : 0 , # 0 for no limit
119+ "preview" : False ,
118120}
119121
120122MAJOR = "MAJOR"
You can’t perform that action at this time.
0 commit comments