add gitRawCommitsExecOpts parameter for conventional core
See original GitHub issuethe source code of git-raw-commits
There should be 2 parameters rawGitOpts
and rawExecOpts
.
function gitRawCommits (rawGitOpts, rawExecOpts) {
var readable = new stream.Readable()
readable._read = function () {}
var gitOpts = normalizeGitOpts(rawGitOpts)
var execOpts = normalizeExecOpts(rawExecOpts)
var args = getGitArgs(gitOpts)
if (gitOpts.debug) {
gitOpts.debug('Your git-log command is:\ngit ' + args.join(' '))
}
But there is only one parameter here.
here is an example to set base dir to parse the commit that is what I need
gitRawCommits(gitRawCommitsOpts, { cwd: 'path/to/your/git/project' });
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (11 by maintainers)
Top Results From Across the Web
weixin_39625975的博客_CSDN博客-领域博主
内网服务器共享文件,内网服务器文件共享,wegame显示不出区服务器,wegame无法显示网页怎么办?腾讯wegame无法显示网页的三种解决方法...,oppo r17听筒 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve come to prefer the single object argument as well for most of my work. I can always do object destructuring in the called function if I want to pull out specific properties from the object (typically I do this for readability).
I like option 1 a lot better. I think a breaking change is fine and it should be easy for users to change accordingly.