diff --git a/index.html b/index.html index 37c6463..bdb021c 100644 --- a/index.html +++ b/index.html @@ -406,6 +406,10 @@ function mkdir(dirname) { return filesystem[dirname] = null; } +function exists(filename) { + return typeof(filesystem[filename]) !== 'undefined'; +} + current_directory = ''; function cd(d) { current_directory = d; @@ -687,15 +691,27 @@ initial_commit = store_commit(
A branch is a pointer to a commit, stored in a file in .git/refs/heads/name_of_the_branch
.
+ The branch can be overwritten with git branch -f
. Also, as will be explained later,
+ git commit
can update the pointer of a branch.