Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API methods #10

Open
maciej-gurban opened this issue Jun 30, 2016 · 0 comments
Open

API methods #10

maciej-gurban opened this issue Jun 30, 2016 · 0 comments
Labels

Comments

@maciej-gurban
Copy link

maciej-gurban commented Jun 30, 2016

Hi! Very interesting project. Thanks a lot for sharing!

I was wondering whether you'd consider revising naming conventions to be a bit less verbose and closer to git's syntax. What I mean is:

const git = new GitKit({
  repo: REPOSITORY_URL,
  user: REPOSITORY_USER
});

git.commit('initial commit, '*');
git.commit('initial commit, [
  'app.js',
  'scripts.js'
]);

git.branch.current()
git.branch.checkout('develop/feature/profile-update')

Not all of them would be as simple of course, since checkout() might also need to be accompanied by checkoutNew etc. but I hope you know what I mean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants