Fossil SCM

Improvements to the help text for the new --reopen option in "fossil open".

drh 2026-02-24 13:14 trunk
Commit 6f566c8438eb9d20a0b9664e92c0aff1d509794a366d3e7467a537c25d05c3d8
1 file changed +5 -3
+5 -3
--- src/db.c
+++ src/db.c
@@ -4251,22 +4251,24 @@
42514251
** -k|--keep Only modify the manifest file(s)
42524252
** --nested Allow opening a repository inside an opened check-out
42534253
** --nosync Do not auto-sync the repository prior to opening even
42544254
** if the autosync setting is on.
42554255
** --proxy PROXY Use PROXY as http proxy during sync operation
4256
+** --reopen REPO "Reopen" an existing checkout to use a different
4257
+** repository file REPO. Useful to reconnect an existing
4258
+** checkout to a repository after the original repository
4259
+** file is moved. CAUTION: may lose stash and bisect
4260
+** history.
42564261
** --repodir DIR If REPOSITORY is a URI that will be cloned, store
42574262
** the clone in DIR rather than in "."
42584263
** --setmtime Set timestamps of all files to match their SCM-side
42594264
** times (the timestamp of the last check-in which modified
42604265
** them).
42614266
** --verbose If passed a URI then this flag is passed on to the clone
42624267
** operation, otherwise it has no effect
42634268
** --workdir DIR Use DIR as the working directory instead of ".". The DIR
42644269
** directory is created if it does not exist.
4265
-** --reopen REPOFILE Changes the repository file used by the current checkout
4266
-** to REPOFILE. Use this after moving a checkout's
4267
-** repository. This may lose stash and bisect history.
42684270
**
42694271
** See also: [[close]], [[clone]]
42704272
*/
42714273
void cmd_open(void){
42724274
int emptyFlag;
42734275
--- src/db.c
+++ src/db.c
@@ -4251,22 +4251,24 @@
4251 ** -k|--keep Only modify the manifest file(s)
4252 ** --nested Allow opening a repository inside an opened check-out
4253 ** --nosync Do not auto-sync the repository prior to opening even
4254 ** if the autosync setting is on.
4255 ** --proxy PROXY Use PROXY as http proxy during sync operation
 
 
 
 
 
4256 ** --repodir DIR If REPOSITORY is a URI that will be cloned, store
4257 ** the clone in DIR rather than in "."
4258 ** --setmtime Set timestamps of all files to match their SCM-side
4259 ** times (the timestamp of the last check-in which modified
4260 ** them).
4261 ** --verbose If passed a URI then this flag is passed on to the clone
4262 ** operation, otherwise it has no effect
4263 ** --workdir DIR Use DIR as the working directory instead of ".". The DIR
4264 ** directory is created if it does not exist.
4265 ** --reopen REPOFILE Changes the repository file used by the current checkout
4266 ** to REPOFILE. Use this after moving a checkout's
4267 ** repository. This may lose stash and bisect history.
4268 **
4269 ** See also: [[close]], [[clone]]
4270 */
4271 void cmd_open(void){
4272 int emptyFlag;
4273
--- src/db.c
+++ src/db.c
@@ -4251,22 +4251,24 @@
4251 ** -k|--keep Only modify the manifest file(s)
4252 ** --nested Allow opening a repository inside an opened check-out
4253 ** --nosync Do not auto-sync the repository prior to opening even
4254 ** if the autosync setting is on.
4255 ** --proxy PROXY Use PROXY as http proxy during sync operation
4256 ** --reopen REPO "Reopen" an existing checkout to use a different
4257 ** repository file REPO. Useful to reconnect an existing
4258 ** checkout to a repository after the original repository
4259 ** file is moved. CAUTION: may lose stash and bisect
4260 ** history.
4261 ** --repodir DIR If REPOSITORY is a URI that will be cloned, store
4262 ** the clone in DIR rather than in "."
4263 ** --setmtime Set timestamps of all files to match their SCM-side
4264 ** times (the timestamp of the last check-in which modified
4265 ** them).
4266 ** --verbose If passed a URI then this flag is passed on to the clone
4267 ** operation, otherwise it has no effect
4268 ** --workdir DIR Use DIR as the working directory instead of ".". The DIR
4269 ** directory is created if it does not exist.
 
 
 
4270 **
4271 ** See also: [[close]], [[clone]]
4272 */
4273 void cmd_open(void){
4274 int emptyFlag;
4275

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button