Repository.CreateCommit: Allow empty refname for non-update commit #115

Merged
surma merged 2 commits from feature/empty_refname into master 2014-09-04 07:38:36 -05:00
surma commented 2014-09-01 12:33:27 -05:00 (Migrated from github.com)

The documentation implies that refname can be NULL if you don't want to automatically udpate a ref. This is useful if you want to create a new root commit (without any parents, think a gh-pages branch).

This commit enables users to use the empty string for refname to signal a non-updating commit.

[The documentation](https://libgit2.github.com/libgit2/#HEAD/group/commit/git_commit_create) implies that `refname` _can_ be NULL if you don't want to automatically udpate a ref. This is useful if you want to create a new root commit (without any parents, think a `gh-pages` branch). This commit enables users to use the empty string for `refname` to signal a non-updating commit.
carlosmn commented 2014-09-04 07:38:44 -05:00 (Migrated from github.com)

Thanks

Thanks
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jcarr/git2go#115
No description provided.