DrSensor / DrSensor/fluent-git

Add fetch, pull, push operation on git-notes

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4
Forks
2
PR merge metrics
No merged PRs in 30d

Description

> https://github.com/g-u-c/guc-desktop/pull/31/commits/abac4cdb423f457600308ea27b7570ba48c4a6b0

These operations are a bit different with others git-notes operation because **it doesn't require handler**. Some ways to use the API that I can think of:
```js
notes({ ref: 'utopian' }).push() // or pull() | fetch()
notes({ ref: '*' }).fetch() // or pull() | push()

notes({ ref: '*', remote: 'origin' }).fetch() // or pull() | push()

notes({ref: 'utopian'}).atBranch('master').fetch(...flags) // or pull() | fetch()
notes({ref: 'utopian'}).atRemote('origin').fetch(...flags) // or pull() | fetch()

notes({ref: 'utopian'}).at({ remote: 'origin', branch: 'master' }).push(...flags) // or pull() | fetch()

notes({ref: 'utopian'}).at('origin', 'master').push(...flags) // or pull() | fetch()
```

Which one is better?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.