ref: Reference to read from. Default (ref = NULL) is to call note_default_ref.
Returns
list with git_note objects
Examples
## Not run:## Create and initialize a repository in a temporary directorypath <- tempfile(pattern="git2r-")dir.create(path)repo <- init(path)config(repo, user.name ="Alice", user.email ="alice@example.org")## Create a file, add and commitwriteLines("Hello world!", file.path(path,"example.txt"))add(repo,"example.txt")commit_1 <- commit(repo,"Commit message 1")## Create another commitwriteLines(c("Hello world!","HELLO WORLD!"), file.path(path,"example.txt"))add(repo,"example.txt")commit_2 <- commit(repo,"Commit message 2")## Create note in default namespacenote_create(commit_1,"Note-1")note_create(commit_1,"Note-2", force =TRUE)## Create note in named (review) namespacenote_create(commit_1,"Note-3", ref="refs/notes/review")note_create(commit_2,"Note-4", ref="review")## Create note on blob and treenote_create(tree(commit_1),"Note-5")note_create(tree(commit_1)["example.txt"],"Note-6")# in default namespacenotes(repo)# in 'review' namespacenotes(repo,"review")## End(Not run)