Skip to content

Make all the great features of stg edit more discoverable #138

@topher200

Description

@topher200

Migrating discussion from #137. cc @jpgrayson

stg edit --diff can do a lot of things:

  1. rename the patch
  2. change the author
  3. change the date
  4. change the commit message
  5. 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

image

stg rebase --interactive

image


We could drop some text in the middle of the edit message.

stg edit --diff currently:

image

Proposal: how about something like this?

image

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions