-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Migrating discussion from #137. cc @jpgrayson
stg edit --diff
can do a lot of things:
- rename the patch
- change the author
- change the date
- change the commit message
- change the diff(!!!)
Basically, everything on the page is editable. How can we make this more discoverable?
The "dumb" idea would be to add instructions, similar to stg rebase --interactive
or git commit
.
git commit
stg rebase --interactive
We could drop some text in the middle of the edit message.
stg edit --diff
currently:
Proposal: how about something like this?
From: Topher Green <topher@memfault.com>
Date: 2021-07-05 18:23:42 -0400
baz
---
# Everything in `edit` is editable! Modify the patch name, author, date,
# commit message and (if `--diff` was given) the diff below.
one.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/one.txt b/one.txt
index de9f81b..c70b308 100644
--- a/one.txt
+++ b/one.txt
@@ -1,4 +1,4 @@
-First line
+First line new
Second line
Third line
Fourth line
I have no ego about any of this text -- happy to iterate if anyone has suggestions.
Metadata
Metadata
Assignees
Labels
No labels