Fossil SCM

Fixed irregular indents in gitusers.md command examples

wyoung 2020-11-02 01:26 trunk
Commit d1ebc8ef061d023a670448c971ffac077ebd62c3533fbc4c83c7a40cef3fdcde
1 file changed +14 -14
+14 -14
--- www/gitusers.md
+++ www/gitusers.md
@@ -68,17 +68,17 @@
6868
6969
git checkout some-branch
7070
7171
…is spelled:
7272
73
- fossil update some-branch
73
+ fossil update some-branch
7474
7575
…in Fossil.
7676
7777
Second, as of Fossil 2.14, we now have Git-style clone-and-open:
7878
79
- fossil clone https://example.com/repo
79
+ fossil clone https://example.com/repo
8080
8181
That gets you a `repo.fossil` file, opened into a `repo/` working
8282
directory alongside it. Note that we do not commingle the repo and
8383
working directory even in this case. See [the workflows doc][ckwf]
8484
for more detail on this and related topics.
@@ -187,12 +187,12 @@
187187
git worktree add ../foo-branch foo-branch
188188
cd ../foo-branch
189189
190190
That is approximately equivalent to this in Fossil:
191191
192
- mkdir ../foo-branch
193
- fossil open /path/to/repo.fossil foo-branch
192
+ mkdir ../foo-branch
193
+ fossil open /path/to/repo.fossil foo-branch
194194
195195
That then leads us to the closest equivalent in Git to [closing a Fossil
196196
check-out](#close):
197197
198198
git worktree remove .
@@ -202,11 +202,11 @@
202202
the checked-out files! Fossil’s alternative is shorter, easier to
203203
remember, and safer.
204204
205205
There’s another way to get Fossil-like separate worktrees in Git:
206206
207
- git clone --separate-git-dir repo.git https://example.com/repo
207
+ git clone --separate-git-dir repo.git https://example.com/repo
208208
209209
This allows you to have your Git repository directory entirely separate
210210
from your working tree, with `.git` in the check-out directory being a
211211
file that points to `../repo.git`, in this example.
212212
@@ -362,28 +362,28 @@
362362
## Create Branches At Point Of Need, Rather Than Ahead of Need
363363
364364
Fossil prefers that you create new branches as part of the first commit
365365
on that branch:
366366
367
- fossil commit --branch my-new-branch
367
+ fossil commit --branch my-new-branch
368368
369369
If that commit is successful, your local check-out directory is then
370370
switched to the tip of that branch, so subsequent commits don’t need the
371371
“`--branch`” option. You simply say `fossil commit` again to continue
372372
adding commits to the tip of that branch.
373373
374374
To switch back to the parent branch, say something like:
375375
376
- fossil update trunk # ≅ git checkout master
376
+ fossil update trunk # ≅ git checkout master
377377
378378
Fossil does also support the Git style, creating the branch ahead of
379379
need:
380380
381
- fossil branch new my-new-branch
382
- fossil update my-new-branch
383
- ...work on first commit...
384
- fossil commit
381
+ fossil branch new my-new-branch
382
+ fossil update my-new-branch
383
+ ...work on first commit...
384
+ fossil commit
385385
386386
This is more verbose, but it has the same effect: put the first commit
387387
onto `my-new-branch` and switch the check-out directory to that branch so
388388
subsequent commits are descendants of that initial branch commit.
389389
@@ -574,11 +574,11 @@
574574
575575
Fossil doesn’t have an internal equivalent to commands like
576576
`git show --stat`, but it’s easily remedied by using
577577
[the widely-available `diffstat` tool][dst]:
578578
579
- fossil diff -i --from 2020-04-01 | diffstat
579
+ fossil diff -i --from 2020-04-01 | diffstat
580580
581581
We gave the `-i` flag here to force Fossil to use its internal diff
582582
implementation, bypassing [your local `diff-command` setting][dcset].
583583
If you had that set to [`colordiff`][cdiff], for example, its output
584584
would confuse `diffstat`.
@@ -661,19 +661,19 @@
661661
default: they do not actually rename or delete the files in your
662662
check-out.
663663
664664
If you don’t like that default, you can change it globally:
665665
666
- fossil setting --global mv-rm-files 1
666
+ fossil setting --global mv-rm-files 1
667667
668668
Now these commands behave like in Git in any Fossil repository where
669669
this setting hasn’t been overridden locally.
670670
671671
If you want to keep Fossil’s soft `mv/rm` behavior most of the time, you
672672
can cast it away on a per-command basis:
673673
674
- fossil mv --hard old-name new-name
674
+ fossil mv --hard old-name new-name
675675
676676
[mv]: /help?cmd=mv
677677
[rm]: /help?cmd=rm
678678
679679
680680
--- www/gitusers.md
+++ www/gitusers.md
@@ -68,17 +68,17 @@
68
69 git checkout some-branch
70
71 …is spelled:
72
73 fossil update some-branch
74
75 …in Fossil.
76
77 Second, as of Fossil 2.14, we now have Git-style clone-and-open:
78
79 fossil clone https://example.com/repo
80
81 That gets you a `repo.fossil` file, opened into a `repo/` working
82 directory alongside it. Note that we do not commingle the repo and
83 working directory even in this case. See [the workflows doc][ckwf]
84 for more detail on this and related topics.
@@ -187,12 +187,12 @@
187 git worktree add ../foo-branch foo-branch
188 cd ../foo-branch
189
190 That is approximately equivalent to this in Fossil:
191
192 mkdir ../foo-branch
193 fossil open /path/to/repo.fossil foo-branch
194
195 That then leads us to the closest equivalent in Git to [closing a Fossil
196 check-out](#close):
197
198 git worktree remove .
@@ -202,11 +202,11 @@
202 the checked-out files! Fossil’s alternative is shorter, easier to
203 remember, and safer.
204
205 There’s another way to get Fossil-like separate worktrees in Git:
206
207 git clone --separate-git-dir repo.git https://example.com/repo
208
209 This allows you to have your Git repository directory entirely separate
210 from your working tree, with `.git` in the check-out directory being a
211 file that points to `../repo.git`, in this example.
212
@@ -362,28 +362,28 @@
362 ## Create Branches At Point Of Need, Rather Than Ahead of Need
363
364 Fossil prefers that you create new branches as part of the first commit
365 on that branch:
366
367 fossil commit --branch my-new-branch
368
369 If that commit is successful, your local check-out directory is then
370 switched to the tip of that branch, so subsequent commits don’t need the
371 “`--branch`” option. You simply say `fossil commit` again to continue
372 adding commits to the tip of that branch.
373
374 To switch back to the parent branch, say something like:
375
376 fossil update trunk # ≅ git checkout master
377
378 Fossil does also support the Git style, creating the branch ahead of
379 need:
380
381 fossil branch new my-new-branch
382 fossil update my-new-branch
383 ...work on first commit...
384 fossil commit
385
386 This is more verbose, but it has the same effect: put the first commit
387 onto `my-new-branch` and switch the check-out directory to that branch so
388 subsequent commits are descendants of that initial branch commit.
389
@@ -574,11 +574,11 @@
574
575 Fossil doesn’t have an internal equivalent to commands like
576 `git show --stat`, but it’s easily remedied by using
577 [the widely-available `diffstat` tool][dst]:
578
579 fossil diff -i --from 2020-04-01 | diffstat
580
581 We gave the `-i` flag here to force Fossil to use its internal diff
582 implementation, bypassing [your local `diff-command` setting][dcset].
583 If you had that set to [`colordiff`][cdiff], for example, its output
584 would confuse `diffstat`.
@@ -661,19 +661,19 @@
661 default: they do not actually rename or delete the files in your
662 check-out.
663
664 If you don’t like that default, you can change it globally:
665
666 fossil setting --global mv-rm-files 1
667
668 Now these commands behave like in Git in any Fossil repository where
669 this setting hasn’t been overridden locally.
670
671 If you want to keep Fossil’s soft `mv/rm` behavior most of the time, you
672 can cast it away on a per-command basis:
673
674 fossil mv --hard old-name new-name
675
676 [mv]: /help?cmd=mv
677 [rm]: /help?cmd=rm
678
679
680
--- www/gitusers.md
+++ www/gitusers.md
@@ -68,17 +68,17 @@
68
69 git checkout some-branch
70
71 …is spelled:
72
73 fossil update some-branch
74
75 …in Fossil.
76
77 Second, as of Fossil 2.14, we now have Git-style clone-and-open:
78
79 fossil clone https://example.com/repo
80
81 That gets you a `repo.fossil` file, opened into a `repo/` working
82 directory alongside it. Note that we do not commingle the repo and
83 working directory even in this case. See [the workflows doc][ckwf]
84 for more detail on this and related topics.
@@ -187,12 +187,12 @@
187 git worktree add ../foo-branch foo-branch
188 cd ../foo-branch
189
190 That is approximately equivalent to this in Fossil:
191
192 mkdir ../foo-branch
193 fossil open /path/to/repo.fossil foo-branch
194
195 That then leads us to the closest equivalent in Git to [closing a Fossil
196 check-out](#close):
197
198 git worktree remove .
@@ -202,11 +202,11 @@
202 the checked-out files! Fossil’s alternative is shorter, easier to
203 remember, and safer.
204
205 There’s another way to get Fossil-like separate worktrees in Git:
206
207 git clone --separate-git-dir repo.git https://example.com/repo
208
209 This allows you to have your Git repository directory entirely separate
210 from your working tree, with `.git` in the check-out directory being a
211 file that points to `../repo.git`, in this example.
212
@@ -362,28 +362,28 @@
362 ## Create Branches At Point Of Need, Rather Than Ahead of Need
363
364 Fossil prefers that you create new branches as part of the first commit
365 on that branch:
366
367 fossil commit --branch my-new-branch
368
369 If that commit is successful, your local check-out directory is then
370 switched to the tip of that branch, so subsequent commits don’t need the
371 “`--branch`” option. You simply say `fossil commit` again to continue
372 adding commits to the tip of that branch.
373
374 To switch back to the parent branch, say something like:
375
376 fossil update trunk # ≅ git checkout master
377
378 Fossil does also support the Git style, creating the branch ahead of
379 need:
380
381 fossil branch new my-new-branch
382 fossil update my-new-branch
383 ...work on first commit...
384 fossil commit
385
386 This is more verbose, but it has the same effect: put the first commit
387 onto `my-new-branch` and switch the check-out directory to that branch so
388 subsequent commits are descendants of that initial branch commit.
389
@@ -574,11 +574,11 @@
574
575 Fossil doesn’t have an internal equivalent to commands like
576 `git show --stat`, but it’s easily remedied by using
577 [the widely-available `diffstat` tool][dst]:
578
579 fossil diff -i --from 2020-04-01 | diffstat
580
581 We gave the `-i` flag here to force Fossil to use its internal diff
582 implementation, bypassing [your local `diff-command` setting][dcset].
583 If you had that set to [`colordiff`][cdiff], for example, its output
584 would confuse `diffstat`.
@@ -661,19 +661,19 @@
661 default: they do not actually rename or delete the files in your
662 check-out.
663
664 If you don’t like that default, you can change it globally:
665
666 fossil setting --global mv-rm-files 1
667
668 Now these commands behave like in Git in any Fossil repository where
669 this setting hasn’t been overridden locally.
670
671 If you want to keep Fossil’s soft `mv/rm` behavior most of the time, you
672 can cast it away on a per-command basis:
673
674 fossil mv --hard old-name new-name
675
676 [mv]: /help?cmd=mv
677 [rm]: /help?cmd=rm
678
679
680

Keyboard Shortcuts

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