threads / discuss / 55933

A suggestion: more readable human commands

Subject: A suggestion: more readable human commands

## tl;dr

3 messages between Jun 15, 2021 and Jun 15, 2021.

replies: 2people: 3as markdown or json

it-developer@abelardolg.com· Jun 15, 2021, 10:51 UTC · lore
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.
Bagas Sanjaya· Jun 15, 2021, 10:59 UTC · re: it-developer@abelardolg.com · lore

Re: A suggestion: more readable human commands

On 15/06/21 17.51, it-developer@abelardolg.com wrote:
Show 20 quoted lines
> 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.
What workflow you do so that you need to merge single file?
-- 
An old man doll... just what I always wanted! - Clara
Andreas Schwab· Jun 15, 2021, 11:55 UTC · re: it-developer@abelardolg.com · lore

Re: A suggestion: more readable human commands

On Jun 15 2021, it-developer@abelardolg.com wrote:
Show 7 quoted lines
> 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.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

← back to recent threads