Skip to content

Commit 028bb23

Browse files
pks-tgitster
authored andcommitted
BreakingChanges: document that we do not plan to deprecate git-checkout
The git-checkout(1) command is seen by many as hard to understand because it connects two somewhat unrelated features: switching between branches and restoring worktree files from arbitrary revisions. In 2019, we thus implemented two new commands git-switch(1) and git-restore(1) to split out these separate concerns into standalone functions. This "replacement" of git-checkout(1) has repeatedly triggered concerns for our userbase that git-checkout(1) will eventually go away. This is not the case though: the use of that command is still widespread, and it is not expected that this will change anytime soon. Document that all three commands will remain for the foreseeable future. This decision may be revisited in case we ever figure out that most everyone has given up on any of the commands. Signed-off-by: Patrick Steinhardt <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fcf0f48 commit 028bb23

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Documentation/BreakingChanges.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,15 @@ Some features have gained newer replacements that aim to improve the design in
121121
certain ways. The fact that there is a replacement does not automatically mean
122122
that the old way of doing things will eventually be removed. This section tracks
123123
those features with newer alternatives.
124+
125+
* The features git-checkout(1) offers are covered by the pair of commands
126+
git-restore(1) and git-switch(1). Because the use of git-checkout(1) is still
127+
widespread, and it is not expected that this will change anytime soon, all
128+
three commands will stay.
129+
+
130+
This decision may get revisited in case we ever figure out that there are
131+
almost no users of any of the commands anymore.
132+
+
133+
134+
135+

0 commit comments

Comments
 (0)