bahmutov / bahmutov/pre-git

Access to the stdin lines as described by Git

Open
#28 1 comment 0 reactions 0 assignees View on GitHub
enhancement minor
Dominant language
JavaScript
Stars
170
Forks
22
PR merge metrics
No merged PRs in 30d

Description

Would be really useful if we could get hold of the actual input used when running pre-push as described here:

http://git-scm.com/docs/githooks#_pre_push

...and used in action in the sample here:

https://github.com/git/git/blob/master/templates/hooks--pre-push.sample

Seems git itself takes control of the stdin; I've had a look at least, and cannot seem to access this information cleanly, if at all.

Would certainly be useful to ascertain the actual branch being pushed, as it would be possible for a user to push a branch that is different to their current active branch.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.