Comments (10)
This works for me:
var stream = gulp.src('.')
.pipe(gits.add({ args: '--all' }))
.pipe(gits.commit(message));
from gulp-git.
git.add()
with the src as the folder the files are in.
Not sure of other ways, it seems rather tricky.
from gulp-git.
do you mean
gulp.src('folderName').pipe(git.add())
?
from gulp-git.
Yes, such as:
gulp.src('./folder')
.pipe(git.add())
.pipe(git.commit());
from gulp-git.
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 [email protected] wrote:
Yes, such as:
gulp.src('./folder').pipe(git.add())
—
Reply to this email directly or view it on GitHub
#38 (comment).
Sterling Camden
Software Engineer
502 Emerson Street | Palo Alto, CA 94301
303.520.2968 | [email protected]
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/!
from gulp-git.
@scamden does adding the args help?
from gulp-git.
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.
from gulp-git.
@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.
from gulp-git.
alright thanks man
On 3 October 2014 00:40, Javier Carrillo [email protected] 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
#38 (comment).
Sterling Camden
Software Engineer
502 Emerson Street | Palo Alto, CA 94301
303.520.2968 | [email protected]
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/!
from gulp-git.
Closing this now
from gulp-git.
Related Issues (20)
- Get current branch name? HOT 2
- git add is broken in Node 8 HOT 1
- git.add does not allow for specified files to add in another cwd HOT 4
- gulp-git breaks in Node 9.5.0. HOT 3
- Error creating commit on new git version HOT 20
- Error: i can't commit HOT 2
- How to use git clone with ssh HOT 2
- How to clone with a specified branch? HOT 5
- commit() will commit also unstaged files HOT 2
- Git add . all files HOT 2
- Cannot use '-a' anymore for commit HOT 4
- how can I checkout a file HOT 1
- stdout maxBuffer length exceeded (diff.js) HOT 1
- Problem with absolute path or Gulp v4
- Cherry-pick - feature request HOT 1
- finish event listener registration error
- Gulp 4 compatibility HOT 1
- Add rebase command HOT 2
- "The command line is too long." on `git.add()` HOT 1
- lodash.template critical vulnerabilities from Mend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-git.