mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line.
@ 2021-01-24 11:18 Felix Mellmann
  2021-01-24 13:08 ` Alexander Dahl
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Mellmann @ 2021-01-24 11:18 UTC (permalink / raw)
  To: ptxdist; +Cc: Felix Mellmann

The midnight commander allows to call internal tools by using their apropriate
name. By adding symbolic links these tool are accessible from the command line.
Some users may appreciate using i.e. mcedit directly without the need to start
a midnight commander.

Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
---
 rules/mc.make | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/rules/mc.make b/rules/mc.make
index 67fc61690..9335e9d0b 100644
--- a/rules/mc.make
+++ b/rules/mc.make
@@ -71,6 +71,10 @@ $(STATEDIR)/mc.targetinstall:
 	@$(call install_fixup, mc,DESCRIPTION,missing)
 
 	@$(call install_copy, mc, 0, 0, 0755, -, /usr/bin/mc)
+	@$(call install_link, mc, mc, /usr/bin/mcdiff)
+	@$(call install_link, mc, mc, /usr/bin/mcedit)
+	@$(call install_link, mc, mc, /usr/bin/mcview)
+
 	@$(call install_alternative_tree, mc, 0, 0, /etc/mc)
 	@$(call install_tree, mc, 0, 0, -, /usr/share/mc/skins)
 
-- 
2.25.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line.
  2021-01-24 11:18 [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line Felix Mellmann
@ 2021-01-24 13:08 ` Alexander Dahl
  2021-01-24 13:31   ` Felix Mellmann
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Dahl @ 2021-01-24 13:08 UTC (permalink / raw)
  To: Felix Mellmann; +Cc: ptxdist


[-- Attachment #1.1: Type: text/plain, Size: 1576 bytes --]

Hello Felix,


On Sun, Jan 24, 2021 at 12:18:05PM +0100, Felix Mellmann wrote:
> The midnight commander allows to call internal tools by using their apropriate
> name. By adding symbolic links these tool are accessible from the command line.
> Some users may appreciate using i.e. mcedit directly without the need to start
> a midnight commander.
> 
> Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
> ---
>  rules/mc.make | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/rules/mc.make b/rules/mc.make
> index 67fc61690..9335e9d0b 100644
> --- a/rules/mc.make
> +++ b/rules/mc.make
> @@ -71,6 +71,10 @@ $(STATEDIR)/mc.targetinstall:
>  	@$(call install_fixup, mc,DESCRIPTION,missing)
>  
>  	@$(call install_copy, mc, 0, 0, 0755, -, /usr/bin/mc)
> +	@$(call install_link, mc, mc, /usr/bin/mcdiff)
> +	@$(call install_link, mc, mc, /usr/bin/mcedit)
> +	@$(call install_link, mc, mc, /usr/bin/mcview)
> +
>  	@$(call install_alternative_tree, mc, 0, 0, /etc/mc)
>  	@$(call install_tree, mc, 0, 0, -, /usr/share/mc/skins)

This is certainly a valuable improvement. However, please trim down
the first line of the commit message to 60, at most 80 chars. This is
common practice and good style when working with Git.

Thanks and greets
Alex

-- 
/"\ ASCII RIBBON | »With the first link, the chain is forged. The first
\ / CAMPAIGN     | speech censured, the first thought forbidden, the
 X  AGAINST      | first freedom denied, chains us all irrevocably.«
/ \ HTML MAIL    | (Jean-Luc Picard, quoting Judge Aaron Satie)

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 181 bytes --]

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line.
  2021-01-24 13:08 ` Alexander Dahl
@ 2021-01-24 13:31   ` Felix Mellmann
  2021-01-24 15:42     ` Roland Hieber
  0 siblings, 1 reply; 4+ messages in thread
From: Felix Mellmann @ 2021-01-24 13:31 UTC (permalink / raw)
  To: Alexander Dahl; +Cc: ptxdist

Hello Alex,

I'm sorry that I've missed to obey the line length. Since I have never
made any contribution to any mailing list until now, I think I have to
learn a lot. I'm also unsure if my other two contributions have even
reached the mailing list as only your answer is visible...

Best regards,
Felix

On 24.01.21 14:08, Alexander Dahl wrote:
> Hello Felix,
> 
> 
> On Sun, Jan 24, 2021 at 12:18:05PM +0100, Felix Mellmann wrote:
>> The midnight commander allows to call internal tools by using their apropriate
>> name. By adding symbolic links these tool are accessible from the command line.
>> Some users may appreciate using i.e. mcedit directly without the need to start
>> a midnight commander.
>>
>> Signed-off-by: Felix Mellmann <flix.ptxdist@benfm.de>
>> ---
>>   rules/mc.make | 4 ++++
>>   1 file changed, 4 insertions(+)
>>
>> diff --git a/rules/mc.make b/rules/mc.make
>> index 67fc61690..9335e9d0b 100644
>> --- a/rules/mc.make
>> +++ b/rules/mc.make
>> @@ -71,6 +71,10 @@ $(STATEDIR)/mc.targetinstall:
>>   	@$(call install_fixup, mc,DESCRIPTION,missing)
>>   
>>   	@$(call install_copy, mc, 0, 0, 0755, -, /usr/bin/mc)
>> +	@$(call install_link, mc, mc, /usr/bin/mcdiff)
>> +	@$(call install_link, mc, mc, /usr/bin/mcedit)
>> +	@$(call install_link, mc, mc, /usr/bin/mcview)
>> +
>>   	@$(call install_alternative_tree, mc, 0, 0, /etc/mc)
>>   	@$(call install_tree, mc, 0, 0, -, /usr/share/mc/skins)
> 
> This is certainly a valuable improvement. However, please trim down
> the first line of the commit message to 60, at most 80 chars. This is
> common practice and good style when working with Git.
> 
> Thanks and greets
> Alex
> 

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line.
  2021-01-24 13:31   ` Felix Mellmann
@ 2021-01-24 15:42     ` Roland Hieber
  0 siblings, 0 replies; 4+ messages in thread
From: Roland Hieber @ 2021-01-24 15:42 UTC (permalink / raw)
  To: Felix Mellmann; +Cc: ptxdist

On Sun, Jan 24, 2021 at 02:31:54PM +0100, Felix Mellmann wrote:
> Hello Alex,
> 
> I'm sorry that I've missed to obey the line length. Since I have never
> made any contribution to any mailing list until now, I think I have to
> learn a lot. I'm also unsure if my other two contributions have even
> reached the mailing list as only your answer is visible...

Yes, they reached the mailing list. You can find them in the archive:
<https://www.mail-archive.com/ptxdist@pengutronix.de/>

One of your mails didn't have a subject, and it looks like it should
have been the commit message of the patch you sent before. When using
git-send-email, you send every commit as a single patch.  The first line
of your commit message is used as the subject line for the mail, and the
other lines of the commit messages, followed by the diff content, are
the body of the message. Therefore it is convention to format the commit
message like you would write a plain-text e-mail and use hard line
breaks after 72 characters.

Also, for PTXdist, the usual pattern for subject lines is starting with
the packages name followed by a colon. In your case, a good concise
subject would be "mc: install symlinks for mcedit, mcdiff, mcview".

Some more pointers for using git-send-email:

If you send multiple patches that depend on each other, it is common to
send them as a mail thread. You can use git-send-email's --thread
argument followed by the commit IDs (or a commit range) to send all of
them them at once (this should already be the default behaviour of
git-send-email).

When the maintainer uses git-am on your mails to apply them to their
branch, the commit message will stay intact like you sent them. However,
if you want to give more information to the reviewers that should not be
part of the commit message when applying the patch, you can add them
below a "---" line. This is often used to give a changelog when sending
multiple iterations of a patch. See for example [1], which was applied
in master as [2].

[1]: https://www.mail-archive.com/ptxdist@pengutronix.de/msg17493.html
[2]: https://git.pengutronix.de/cgit/ptxdist/commit/?id=b5515256f0b1c49c28a2

When sending the next iteration of your patch(es) after incorporating
any feedback you got, send the complete thread again, and use the -v
option for git-send-email, e.g. -v2, -v3, -v4 and so on. This will
change the subject into "[PATCH v2]" etc. so it is clear that the patch
was changed. Also give a changelog what you changed in relation to the
first iteration, like described above.

You can also use --cover-letter to describe your patch series as a whole
(and the changelog for follow-up iterations) in a separate mail, which
will not be committed to the Git repository. See [3] for such an
example.

[3]: https://www.mail-archive.com/ptxdist@pengutronix.de/msg17481.html

 - Roland

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-24 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 11:18 [ptxdist] [PATCH] Added symbolic links to the midnight commander package which allows to call the viewer, the editor and the diff tool from the command line Felix Mellmann
2021-01-24 13:08 ` Alexander Dahl
2021-01-24 13:31   ` Felix Mellmann
2021-01-24 15:42     ` Roland Hieber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox