Skip to main content
Mounted filesystems expose bookmark controls under fs.bookmark.

fs.bookmark.create()

Create a new bookmark on the current commit without switching to it.
string
required
Repository name.
string
required
Bookmark name.

fs.bookmark.move()

Move an existing bookmark to point at a change. Moves must advance history unless allowBackwards: true is provided.
string
required
Repository name.
string
required
Bookmark name.
string
required
Change ID to move the bookmark to.
boolean
default:"false"
Allow an intentional backward or sideways move.

fs.bookmark.list()

List bookmark names for a repository.
string
required
Repository name.

Response

create(...) and move(...) return Promise<void>. list(...) returns Promise<string[]>.