RdLG
RdLG

Reputation: 33

Read git changed files with nodejs

I'm new with nodeJS and have to create a scheduler to list the files that have been changed in a git pull. My question is: Which module/lib/way is better for this?

Upvotes: 3

Views: 1794

Answers (1)

Mr EdgarP
Mr EdgarP

Reputation: 161

You can use the child process module that's built in with Node.js: https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback

With that you can execute a Git command and parse the output yourself.

Upvotes: 4

Related Questions