Giter Site home page Giter Site logo

how can i commit deletions? about gulp-git HOT 10 CLOSED

scamden avatar scamden commented on August 20, 2024
how can i commit deletions?

from gulp-git.

Comments (10)

jimfleming avatar jimfleming commented on August 20, 2024 1

This works for me:

var stream = gulp.src('.')
  .pipe(gits.add({ args: '--all' }))
  .pipe(gits.commit(message));

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

git.add() with the src as the folder the files are in.
Not sure of other ways, it seems rather tricky.

from gulp-git.

scamden avatar scamden commented on August 20, 2024

do you mean

gulp.src('folderName').pipe(git.add())

?

from gulp-git.

stephenlacy avatar stephenlacy commented on August 20, 2024

Yes, such as:

gulp.src('./folder')
  .pipe(git.add())
  .pipe(git.commit());

from gulp-git.

scamden avatar scamden commented on August 20, 2024

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.

stephenlacy avatar stephenlacy commented on August 20, 2024

@scamden does adding the args help?

from gulp-git.

scamden avatar scamden commented on August 20, 2024

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.

stringparser avatar stringparser commented on August 20, 2024

@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.

scamden avatar scamden commented on August 20, 2024

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.

stephenlacy avatar stephenlacy commented on August 20, 2024

Closing this now

from gulp-git.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.