-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unblock special commit message #7128
Conversation
I like the way the 'preview' button is placed in the screenshots of#7039. And I think it could be interesting to doi it also for 'Edit special commit message'. What do you think? |
Codecov Report
@@ Coverage Diff @@
## master #7128 +/- ##
==========================================
+ Coverage 47.31% 47.32% +0.01%
==========================================
Files 746 746
Lines 54475 54486 +11
Branches 7140 7140
==========================================
+ Hits 25775 25788 +13
- Misses 27279 27283 +4
+ Partials 1421 1415 -6
|
https://codecov.io/gh/gitextensions/gitextensions/pull/7128/changes does not contain any touched file but many unrelated?!? |
pro:
con:
|
02a6b5f
to
be597a5
Compare
Added hotkeys also for the |
Cool, thanks! |
I propose this is submitted as its own PR, as it will get merged quickly.
So as this.
Could you please explain why this is a good change? I do not disagree with the change, but I am not fond of the proposed implementation. I think we provide a better user experience by rendering a link label on top of the textbox (z-order wise), e.g. something like the following: |
#7104 (comment): "It's a totally valid scenario to turn the latest commit into a fixup! commit."
Understood. Can it be activated using a shortcut key?
I'd prefer "Modify this special commit message", perhaps with an addition like "(The warrenty ends here.)". (I know we don't give warrenties and should never do.) |
I would think it can.
We can have a tooltip that warns users (e.g. "do it at your own risk" kind of thing) |
I'll try to find some time and fiddle with it
…On Tue, 17 Sep 2019 at 01:20, Michael Seibt ***@***.***> wrote:
Fiddled around with [Link]Label without success. As I explained above, we
need a button-like control, not a label which controls only the focus - the
documentation (which I read too late) states:
"Pressing ALT + the mnemonic character sets the focus to the control that
follows the Label in the tab order."
BTW: The VS 2019 Designer does not understand FormCommit completely. And
it did not allow to place [Link]Label in the area of the message editor.
[image: grafik]
<https://user-images.githubusercontent.com/36601201/64997288-8ceb1000-d8e0-11e9-9b3d-b4f8e6a87690.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7128?email_source=notifications&email_token=ABBTEXRATB425NV2JL2Q6NDQKABEFA5CNFSM4IWJHD62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD62WDMY#issuecomment-531980723>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBTEXS7P4OWUM7QHPBPB5LQKABEFANCNFSM4IWJHD6Q>
.
|
It is simple to test with high contrast dark theme (nothing looks OK, But the button should be visible. |
I like a different perspective, thanks @mdonatas. Will a commit be treated as a fixup if the text changed though? |
The subject after fixup must match. As the button is implemented, I prefer the guidence it provides but I do not have a strong preference. |
The subject must match. But that's the same if you are using offtopic |
The perfect thing would have been to display this message only when the commit has been already pushed. At least we could update the warning message to explain that. |
This comment has been minimized.
This comment has been minimized.
How do you see it implemented? |
If subject must match to the dot, it is not quite unreasonable to make the textbox readonly to indicate it to the user that it isn't something they should be changing. If we leave the textbox editable for the special types of commits (i.e. fixup) our users may be left confused, change text and then wonder why they didn't get a fixup commit they wanted. I'm speaking from first-hand experience where I had/have to teach engineers (including smart senior level devs and architects) about these git commands, and a lot of time I need(ed) to hold their hands with git. The same way others held my hand when I was learning git. |
With regards to detecting if something is pushed, I guess you can check
where origin/branch is and only warn if the rebase is in the past of
origin/branch.
The way me (and my team) are using git is that we rebase and force push
feature branches until everything is clean so the message is useless anyway
(similar to the force push warning). For that the concept of “protected”
branches could be explored, but generally the server is enforcing it so
it’s probably not worth it.
…On Thu, 19 Sep 2019 at 22:44, Igor Velikorossov ***@***.***> wrote:
The subject must match.
If subject must match to the dot, it is not quite unreasonable to make the
textbox readonly to indicate it to the user that it isn't something they
should be changing.
However to allow the use-case where a user may change their mind and do
another type of commit (i.e. not a fixup), we need to make the textbox
editable.
If we leave the textbox editable for the special types of commits (i.e.
fixup) our users may be left confused, change text and then wonder why they
didn't get a fixup commit they wanted.
I'm speaking from first-hand experience where I had/have to teach
engineers (including smart senior level devs and architects) about these
git commands, and a lot of time I need(ed) to hold their hands with git.
The same way others held my hand when I was learning git.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7128?email_source=notifications&email_token=AASYFGOMOHRNPHO24GGLRKDQKPQCBA5CNFSM4IWJHD62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7EYVAY#issuecomment-533301891>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AASYFGNALX54IZLVNUKCD23QKPQCBANCNFSM4IWJHD6Q>
.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hmm... I vaguely remember we had issues with translations for tooltips, but
I don't remember whether it was resolved.
I speculate but I don't think we set tooltips in designer files.
…On Fri, 20 Sep 2019 at 00:55, Michael Seibt ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In GitUI/Translation/English.xlf
<#7128 (comment)>
:
> @@ -3568,6 +3568,10 @@ You can unset the template:
<source>Interactive Add</source>
<target />
</trans-unit>
+ <trans-unit id="modifyCommitMessageButton.Text">
+ <source>Modify this special commit m&essage</source>
+ <target />
+ </trans-unit>
The TranslationApp seems to ignore ToolTips. Must I really create a
TranslationString by hand?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7128?email_source=notifications&email_token=ABBTEXQLXF73OEXNPFGBDY3QKPYN7A5CNFSM4IWJHD62YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCFLD4DA#pullrequestreview-290864652>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABBTEXXZ6MQVRGJ3KNHEEELQKPYN7ANCNFSM4IWJHD6Q>
.
|
I also don't remember but perhaps #3745 could help. Especially, #3745 (comment) |
ad1b999
to
f163cc3
Compare
Added tooltip translation and squashed. |
reverts 82f125d partially
f163cc3
to
63871ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
63871ae
to
e41e88a
Compare
Hello @mstv! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
Sorry for merging too early, I expected that the msftbot was configured to wait for at least one approval. |
Yes, you need to write something like "@msftbot merge if @desired_user_name approves" |
I had; and I had the hope the instantly handled "status: auto merge" could be tamed - by the repo admin at least. |
Fixes #7104
Fixes #6993
Proposed changes
fixup!
andsquash!
commitsAmend commit'
for anyCommitKind
CommitKind
after commiting without closingFormCommit
Screenshots
Before
After
(different message font due to different font settings vs. portable build)
(Intermediate with ToolStripItemButton)
Before
After
Test methodology
Test environment(s)
✒️ I contribute this code under The Developer Certificate of Origin.