Skip to contentSkip to conversation

A suggestion: more readable human commands

DISCUSSION [email protected] 3 participants 3 messages Jun 15, 2021

lore
Share & tools
lore
#0 lore raw

Hi there,

I would like to suggest you a new improvement.

Why not adding a new layer of abstraction for commands or to make more explicitly the commands?

For instance:

To merge a single file from one branch to another:

git checkout <branch_name> <path_to_file> --patch

would be like more readable human like this:

git merge <path_file> to <dst_branch>

It uses a more natural language.

Best regards.

#1 lore raw
Quoted 12 lines · On 15/06/21 17.51, [email protected] wrote:

Hi there,

I would like to suggest you a new improvement.

Why not adding a new layer of abstraction for commands or to make more explicitly the commands?

For instance:

To merge a single file from one branch to another:

git checkout <branch_name> <path_to_file> --patch

Quoted 7 lines

would be like more readable human like this:

git merge <path_file> to <dst_branch>

It uses a more natural language.

Best regards.

What workflow you do so that you need to merge single file?

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw
In reply to [email protected]
Quoted 7 lines · On Jun 15 2021, [email protected] wrote:

To merge a single file from one branch to another:

git checkout <branch_name> <path_to_file> --patch

would be like more readable human like this:

git merge <path_file> to <dst_branch>

This is ambigous if a branch or tag named <path_file> or to exists, and the usual disambiguation using -- will not work.

Andreas.

Signature · 3 lines
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."