Closed scamden closed 9 years ago
git.add()
with the src as the folder the files are in.
Not sure of other ways, it seems rather tricky.
do you mean
gulp.src('folderName').pipe(git.add())
?
Yes, such as:
gulp.src('./folder')
.pipe(git.add())
.pipe(git.commit());
but if the files i'm trying to git.add have been deleted, gulp.src will not add their file names to the stream, cause they don't exist.
On 20 August 2014 18:55, Steve Lacy notifications@github.com wrote:
Yes, such as:
gulp.src('./folder').pipe(git.add())
— Reply to this email directly or view it on GitHub https://github.com/stevelacy/gulp-git/issues/38#issuecomment-52869673.
Sterling Camden Software Engineer 502 Emerson Street | Palo Alto, CA 94301 303.520.2968 | sterling@relateiq.com
See RelateIQ in the Wall Street Journal http://online.wsj.com/news/articles/SB10001424127887323949904578539983425941490, TechCrunch http://techcrunch.com/2013/06/12/relateiq-launches-with-29m-from-formation-8-dustin-moskovitz-and-more-to-be-your-next-gen-relationship-manager/, Forbes http://www.forbes.com/sites/michaelsimmons/2014/01/14/the-one-thing-you-should-do-after-meeting-anyone-new/, and More http://blog.relateiq.com/tag/relateiqinthenews/!
This works for me:
var stream = gulp.src('.')
.pipe(gits.add({ args: '--all' }))
.pipe(gits.commit(message));
@scamden does adding the args help?
well even if it did it wouldn't achieve what i want. i'm trying to only target specific files. add --all will simply add everything, so it's really side stepping the issue of gulp and streams entirely. regardless i appreciate the suggestion.
@scamden there is git.status
if what you need is find those deleted files. The callback will have stdout
and there you can filter and maybe find the files you are talking. Use the --porcelain
option to have a computer-friendly output. Here you can find what each status is labelled for.
alright thanks man
On 3 October 2014 00:40, Javier Carrillo notifications@github.com wrote:
@scamden https://github.com/scamden there is git.status https://github.com/stevelacy/gulp-git/blob/master/lib/status.js#L26 if what you need is find those deleted files. The callback will have stdout and there you can filter and maybe find the files you are talking. Use the --porcelain option to have a computer-friendly output. Here http://git-scm.com/docs/git-status you can find what each status is labelled for.
— Reply to this email directly or view it on GitHub https://github.com/stevelacy/gulp-git/issues/38#issuecomment-57765093.
Sterling Camden Software Engineer 502 Emerson Street | Palo Alto, CA 94301 303.520.2968 | sterling@relateiq.com
See RelateIQ in the Wall Street Journal http://online.wsj.com/news/articles/SB10001424127887323949904578539983425941490, TechCrunch http://techcrunch.com/2013/06/12/relateiq-launches-with-29m-from-formation-8-dustin-moskovitz-and-more-to-be-your-next-gen-relationship-manager/, Forbes http://www.forbes.com/sites/michaelsimmons/2014/01/14/the-one-thing-you-should-do-after-meeting-anyone-new/, and More http://blog.relateiq.com/tag/relateiqinthenews/!
Closing this now
if i have deletions i cannot source them with glp.src, how can i commit them?