gitflash 0.7.0.beta2 → 0.7.0.beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/README.md +15 -11
- data/command_descriptions.yml +21 -7
- data/lib/gitflash/atomic_file.rb +40 -0
- data/lib/gitflash/cli.rb +27 -4
- data/lib/gitflash/command_runner.rb +12 -1
- data/lib/gitflash/commands/clean.rb +29 -1
- data/lib/gitflash/commands/gc.rb +19 -4
- data/lib/gitflash/commands/hook_install.rb +66 -12
- data/lib/gitflash/commands/mark.rb +9 -3
- data/lib/gitflash/commands/snapshot_create.rb +6 -4
- data/lib/gitflash/commands/undo.rb +18 -8
- data/lib/gitflash/commands/worktree_command.rb +17 -3
- data/lib/gitflash/commands/worktree_remove.rb +14 -5
- data/lib/gitflash/config.rb +63 -13
- data/lib/gitflash/config_keys.rb +52 -4
- data/lib/gitflash/confirmation_required.rb +6 -2
- data/lib/gitflash/hook/claude.rb +17 -12
- data/lib/gitflash/hook/command_parser.rb +91 -68
- data/lib/gitflash/hook/command_words.rb +73 -0
- data/lib/gitflash/hook/failure.rb +29 -0
- data/lib/gitflash/hook/git_invocation.rb +119 -0
- data/lib/gitflash/hook/history_rules.rb +81 -0
- data/lib/gitflash/hook/losses.rb +51 -0
- data/lib/gitflash/hook/messages.rb +28 -2
- data/lib/gitflash/hook/paths.rb +47 -0
- data/lib/gitflash/hook/rules.rb +31 -9
- data/lib/gitflash/hook/settings.rb +19 -2
- data/lib/gitflash/hook/shell_quotes.rb +64 -0
- data/lib/gitflash/hook/shell_text.rb +101 -0
- data/lib/gitflash/hook/wrappers.rb +67 -0
- data/lib/gitflash/hook_cli.rb +27 -4
- data/lib/gitflash/protection.rb +12 -4
- data/lib/gitflash/snapshot.rb +9 -2
- data/lib/gitflash/snapshot_check.rb +60 -0
- data/lib/gitflash/snapshots.rb +26 -3
- data/lib/gitflash/state_capture.rb +18 -21
- data/lib/gitflash/ui.rb +31 -3
- data/lib/gitflash/untracked_files.rb +19 -0
- data/lib/gitflash/usage_report.rb +66 -0
- data/lib/gitflash/version.rb +1 -1
- data/schema/v1.json +39 -2
- metadata +14 -1
data/schema/v1.json
CHANGED
|
@@ -37,8 +37,10 @@
|
|
|
37
37
|
"clean",
|
|
38
38
|
"worktree clean",
|
|
39
39
|
"pick",
|
|
40
|
-
"mark"
|
|
41
|
-
|
|
40
|
+
"mark",
|
|
41
|
+
"gitflash"
|
|
42
|
+
],
|
|
43
|
+
"description": "`gitflash` when the command line names no known command (an invalid_usage error)."
|
|
42
44
|
},
|
|
43
45
|
"ok": {
|
|
44
46
|
"type": "boolean"
|
|
@@ -575,6 +577,10 @@
|
|
|
575
577
|
1,
|
|
576
578
|
2
|
|
577
579
|
]
|
|
580
|
+
},
|
|
581
|
+
"confirm_token": {
|
|
582
|
+
"type": "string",
|
|
583
|
+
"description": "Only for a change gitflash undo cannot revert: re-run with --confirm TOKEN to make it. --yes is not enough. The token belongs to this plan."
|
|
578
584
|
}
|
|
579
585
|
}
|
|
580
586
|
},
|
|
@@ -908,6 +914,13 @@
|
|
|
908
914
|
"type": "string"
|
|
909
915
|
},
|
|
910
916
|
"description": "Untracked files not saved because they are larger than 50 MB."
|
|
917
|
+
},
|
|
918
|
+
"excluded_files": {
|
|
919
|
+
"type": "array",
|
|
920
|
+
"items": {
|
|
921
|
+
"type": "string"
|
|
922
|
+
},
|
|
923
|
+
"description": "Untracked files not saved because the snapshot_exclude setting matches them."
|
|
911
924
|
}
|
|
912
925
|
}
|
|
913
926
|
},
|
|
@@ -924,6 +937,10 @@
|
|
|
924
937
|
"snapshot": {
|
|
925
938
|
"type": "string"
|
|
926
939
|
},
|
|
940
|
+
"reason": {
|
|
941
|
+
"type": "string",
|
|
942
|
+
"description": "Why the snapshot was taken, such as `agent hook: before ...`; check it before confirming."
|
|
943
|
+
},
|
|
927
944
|
"branches": {
|
|
928
945
|
"type": "array",
|
|
929
946
|
"items": {
|
|
@@ -1093,6 +1110,22 @@
|
|
|
1093
1110
|
"marking_command": {
|
|
1094
1111
|
"type": "string",
|
|
1095
1112
|
"description": "The PostToolUse command that marks branches an agent creates as agent work."
|
|
1113
|
+
},
|
|
1114
|
+
"mode": {
|
|
1115
|
+
"enum": [
|
|
1116
|
+
"snapshot",
|
|
1117
|
+
"ask",
|
|
1118
|
+
"deny"
|
|
1119
|
+
],
|
|
1120
|
+
"description": "The mode the PreToolUse hook runs in after this install."
|
|
1121
|
+
},
|
|
1122
|
+
"previous_mode": {
|
|
1123
|
+
"enum": [
|
|
1124
|
+
"snapshot",
|
|
1125
|
+
"ask",
|
|
1126
|
+
"deny"
|
|
1127
|
+
],
|
|
1128
|
+
"description": "The mode the installed hook had, when this install changes it."
|
|
1096
1129
|
}
|
|
1097
1130
|
}
|
|
1098
1131
|
},
|
|
@@ -1592,6 +1625,10 @@
|
|
|
1592
1625
|
"skipped"
|
|
1593
1626
|
],
|
|
1594
1627
|
"properties": {
|
|
1628
|
+
"warning": {
|
|
1629
|
+
"type": "string",
|
|
1630
|
+
"description": "Set when the repository has an origin remote but no origin/HEAD: the default branch, and so what counts as merged, was guessed."
|
|
1631
|
+
},
|
|
1595
1632
|
"branches": {
|
|
1596
1633
|
"type": "array",
|
|
1597
1634
|
"items": {
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitflash
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.0.
|
|
4
|
+
version: 0.7.0.beta3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kleanthis Mitsioulis
|
|
@@ -73,6 +73,7 @@ files:
|
|
|
73
73
|
- bin/gitflash
|
|
74
74
|
- command_descriptions.yml
|
|
75
75
|
- lib/gitflash.rb
|
|
76
|
+
- lib/gitflash/atomic_file.rb
|
|
76
77
|
- lib/gitflash/branch.rb
|
|
77
78
|
- lib/gitflash/cherry_pick.rb
|
|
78
79
|
- lib/gitflash/cherry_pick/log_parser.rb
|
|
@@ -118,10 +119,19 @@ files:
|
|
|
118
119
|
- lib/gitflash/hook/branch_marker.rb
|
|
119
120
|
- lib/gitflash/hook/claude.rb
|
|
120
121
|
- lib/gitflash/hook/command_parser.rb
|
|
122
|
+
- lib/gitflash/hook/command_words.rb
|
|
121
123
|
- lib/gitflash/hook/creations.rb
|
|
124
|
+
- lib/gitflash/hook/failure.rb
|
|
125
|
+
- lib/gitflash/hook/git_invocation.rb
|
|
126
|
+
- lib/gitflash/hook/history_rules.rb
|
|
127
|
+
- lib/gitflash/hook/losses.rb
|
|
122
128
|
- lib/gitflash/hook/messages.rb
|
|
129
|
+
- lib/gitflash/hook/paths.rb
|
|
123
130
|
- lib/gitflash/hook/rules.rb
|
|
124
131
|
- lib/gitflash/hook/settings.rb
|
|
132
|
+
- lib/gitflash/hook/shell_quotes.rb
|
|
133
|
+
- lib/gitflash/hook/shell_text.rb
|
|
134
|
+
- lib/gitflash/hook/wrappers.rb
|
|
125
135
|
- lib/gitflash/hook_cli.rb
|
|
126
136
|
- lib/gitflash/ownership.rb
|
|
127
137
|
- lib/gitflash/prompt.rb
|
|
@@ -130,11 +140,14 @@ files:
|
|
|
130
140
|
- lib/gitflash/restore.rb
|
|
131
141
|
- lib/gitflash/result.rb
|
|
132
142
|
- lib/gitflash/snapshot.rb
|
|
143
|
+
- lib/gitflash/snapshot_check.rb
|
|
133
144
|
- lib/gitflash/snapshots.rb
|
|
134
145
|
- lib/gitflash/state_capture.rb
|
|
135
146
|
- lib/gitflash/terminal_text.rb
|
|
136
147
|
- lib/gitflash/ui.rb
|
|
148
|
+
- lib/gitflash/untracked_files.rb
|
|
137
149
|
- lib/gitflash/usage_error.rb
|
|
150
|
+
- lib/gitflash/usage_report.rb
|
|
138
151
|
- lib/gitflash/version.rb
|
|
139
152
|
- lib/gitflash/worktree.rb
|
|
140
153
|
- lib/gitflash/worktree_cli.rb
|