Re: PATCH: improve git switch documentation

6 messages, 2 authors, 2021-07-14 · open the first message on its own page

Re: PATCH: improve git switch documentation

From: Sergey Organov <hidden>
Date: 2021-07-11 09:52:43

Felipe Contreras [off-list ref] writes:
Sergey Organov wrote:
[...]
quoted
Creating (a branch) is fundamentally different operation than switching
to (a branch), and that's why the former doesn't fit into "git switch".
Not in my mind. Instead of switching to an existing branch, I'm switching
to a new branch, which is easily understood by
`git switch --new branch`.
To me:

"create a new branch" is basic operation.

"switch to another branch" is basic operation.

"create a new branch and then switch to it" is compound operation.

The latter could be implemented as either new-then-switch or
switch-to-new indeed, but the "new" part is the first action to be made,
so

  git new branch <branch-name>

that switches to the <branch-name> by default still sounds more logical
to me than current:

  git switch -c <branch-name>

Thanks,
-- 
Sergey Organov

Re: PATCH: improve git switch documentation

From: Felipe Contreras <hidden>
Date: 2021-07-12 16:44:17

Sergey Organov wrote:
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
[...]
quoted
quoted
Creating (a branch) is fundamentally different operation than switching
to (a branch), and that's why the former doesn't fit into "git switch".
Not in my mind. Instead of switching to an existing branch, I'm switching
to a new branch, which is easily understood by
`git switch --new branch`.
To me:

"create a new branch" is basic operation.

"switch to another branch" is basic operation.

"create a new branch and then switch to it" is compound operation.
Compound operations soon become basic operations in the mind of an
expert.

Lifting your feet, and then landing your feet might be basic operations
when you are 1 yo, but soon enough they become "walking".

Similarly checking out a commit and then cherry-picking a sequence of
commits while resolving conflicts becomes "rebasing".

In my mind I'm not doing two operations, it's one operation with a
modifier:

  git switch --new branch

--new is an adverb, not an operation.

-- 
Felipe Contreras

Re: PATCH: improve git switch documentation

From: Sergey Organov <hidden>
Date: 2021-07-13 10:57:34

Felipe Contreras [off-list ref] writes:
Sergey Organov wrote:
quoted
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
[...]
quoted
quoted
Creating (a branch) is fundamentally different operation than switching
to (a branch), and that's why the former doesn't fit into "git switch".
Not in my mind. Instead of switching to an existing branch, I'm switching
to a new branch, which is easily understood by
`git switch --new branch`.
To me:

"create a new branch" is basic operation.

"switch to another branch" is basic operation.

"create a new branch and then switch to it" is compound operation.
Compound operations soon become basic operations in the mind of an
expert.

Lifting your feet, and then landing your feet might be basic operations
when you are 1 yo, but soon enough they become "walking".
[caveat: please don't take the rest of this post too seriously]

Yeah, using another name for a compound is yet another option indeed.
"git cretching"?
Similarly checking out a commit and then cherry-picking a sequence of
commits while resolving conflicts becomes "rebasing".
This is very questionable example. Please don't let me even start on
this.
In my mind I'm not doing two operations, it's one operation with a
modifier:

  git switch --new branch

--new is an adverb, not an operation.
Well, let's see:

    git walk "First Avenue"
    git walk parkway

then, suddenly:

    git walk --new road

Just an adverb, a modifier. As if no any additional operations were
actually needed. Minecraft: who cares? Just saying.

Thanks,
-- 
Sergey Organov

Re: PATCH: improve git switch documentation

From: Felipe Contreras <hidden>
Date: 2021-07-13 16:10:27

Sergey Organov wrote:
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
quoted
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
[...]
quoted
quoted
Creating (a branch) is fundamentally different operation than switching
to (a branch), and that's why the former doesn't fit into "git switch".
Not in my mind. Instead of switching to an existing branch, I'm switching
to a new branch, which is easily understood by
`git switch --new branch`.
To me:

"create a new branch" is basic operation.

"switch to another branch" is basic operation.

"create a new branch and then switch to it" is compound operation.
Compound operations soon become basic operations in the mind of an
expert.

Lifting your feet, and then landing your feet might be basic operations
when you are 1 yo, but soon enough they become "walking".
[caveat: please don't take the rest of this post too seriously]

Yeah, using another name for a compound is yet another option indeed.
"git cretching"?
quoted
Similarly checking out a commit and then cherry-picking a sequence of
commits while resolving conflicts becomes "rebasing".
This is very questionable example. Please don't let me even start on
this.
You don't need to validate the concept, but chunking is an established
concept in cognitive pshychology [1]. It's how humans learn (and
possibly machines too).
quoted
In my mind I'm not doing two operations, it's one operation with a
modifier:

  git switch --new branch

--new is an adverb, not an operation.
Well, let's see:

    git walk "First Avenue"
    git walk parkway

then, suddenly:

    git walk --new road

Just an adverb, a modifier. As if no any additional operations were
actually needed. Minecraft: who cares? Just saying.
That's how my mind works, regardless of what you think about it.

And any experienced driver of manual cars would tell you that they don't
think in terms of pressing pedals and moving the gear stick. The
individual operations are meaningless.

[1] https://en.wikipedia.org/wiki/Chunking_(psychology)

-- 
Felipe Contreras

Re: PATCH: improve git switch documentation

From: Sergey Organov <hidden>
Date: 2021-07-14 19:14:51

Felipe Contreras [off-list ref] writes:
Sergey Organov wrote:
quoted
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
quoted
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
[...]
quoted
quoted
Creating (a branch) is fundamentally different operation than switching
to (a branch), and that's why the former doesn't fit into "git switch".
Not in my mind. Instead of switching to an existing branch, I'm switching
to a new branch, which is easily understood by
`git switch --new branch`.
To me:

"create a new branch" is basic operation.

"switch to another branch" is basic operation.

"create a new branch and then switch to it" is compound operation.
Compound operations soon become basic operations in the mind of an
expert.

Lifting your feet, and then landing your feet might be basic operations
when you are 1 yo, but soon enough they become "walking".
[caveat: please don't take the rest of this post too seriously]

Yeah, using another name for a compound is yet another option indeed.
"git cretching"?
quoted
Similarly checking out a commit and then cherry-picking a sequence of
commits while resolving conflicts becomes "rebasing".
This is very questionable example. Please don't let me even start on
this.
You don't need to validate the concept, but chunking is an established
concept in cognitive pshychology [1]. It's how humans learn (and
possibly machines too).
The urdge to dive into the muddy waters of psychology to support your
example, where pure logic should probably have sufficed, makes the
example only even more suspect.

Thanks,
-- 
Sergey Organov

Re: PATCH: improve git switch documentation

From: Felipe Contreras <hidden>
Date: 2021-07-14 19:59:49

Sergey Organov wrote:
Felipe Contreras [off-list ref] writes:
quoted
Sergey Organov wrote:
quoted
Felipe Contreras [off-list ref] writes:
quoted
quoted
quoted
Compound operations soon become basic operations in the mind of an
expert.

Lifting your feet, and then landing your feet might be basic operations
when you are 1 yo, but soon enough they become "walking".
[caveat: please don't take the rest of this post too seriously]

Yeah, using another name for a compound is yet another option indeed.
"git cretching"?
quoted
Similarly checking out a commit and then cherry-picking a sequence of
commits while resolving conflicts becomes "rebasing".
This is very questionable example. Please don't let me even start on
this.
You don't need to validate the concept, but chunking is an established
concept in cognitive pshychology [1]. It's how humans learn (and
possibly machines too).
The urdge to dive into the muddy waters of psychology to support your
example, where pure logic should probably have sufficed, makes the
example only even more suspect.
Suspect to you, maybe, not to anyone who works in the teaching industry,
where this concept is well understood and accepted.

Cheers.

-- 
Felipe Contreras
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help