Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git rm options #24

Merged
merged 1 commit into from
Apr 25, 2014
Merged

Add git rm options #24

merged 1 commit into from
Apr 25, 2014

Conversation

MoOx
Copy link

@MoOx MoOx commented Apr 16, 2014

I just duplicate add options to remove to be able to do "git rm -r ."

@notatestuser
Copy link
Owner

Are you sure we couldn't improve the readability of the logic on L368? Bear in mind that the callback is undefined.

@MoOx
Copy link
Author

MoOx commented Apr 16, 2014

@notatestuser I just grab the lines for add() method

gift/src/repo.coffee

Lines 354 to 358 in e1e6973

add: (files, options, callback) ->
[options, callback] = [callback, options] if !callback
options ?= {}
files = [files] if _.isString files
@git "add", options, files, callback

@notatestuser
Copy link
Owner

Okay, that could use a bit of spring cleaning too.

@MoOx
Copy link
Author

MoOx commented Apr 20, 2014

So do you want me to clean this thing ?
That said, I'm not really comfortable with cs.

@notatestuser
Copy link
Owner

No worries, leave that to me. Thanks for the PR.

-----Original Message-----
From: "Maxime Thirouin" [email protected]
Sent: ‎20/‎04/‎2014 05:15
To: "notatestuser/gift" [email protected]
Cc: "Luke Plaster" [email protected]
Subject: Re: [gift] Add git rm options (#24)

So do you want me to clean this thing ?
That said, I'm not really comfortable with cs.

Reply to this email directly or view it on GitHub.

@michealbenedict
Copy link

Any update on when this PR would get merged in?

notatestuser added a commit that referenced this pull request Apr 25, 2014
@notatestuser notatestuser merged commit d28c131 into notatestuser:master Apr 25, 2014
@notatestuser
Copy link
Owner

Pushed to npm in 0.4.1

@michealbenedict
Copy link

perfect, thanks!

@kmctown
Copy link

kmctown commented May 4, 2014

I had to use { "r": true, "f": true } to get this to work -- is that expected? It didn't match the documentation.

@MoOx
Copy link
Author

MoOx commented May 5, 2014

It's working for in the gulp-gh-pages task. Not sure why you need --force here.

@kmctown
Copy link

kmctown commented May 5, 2014

It works without the force -- I am using that because I am blowing away staged changes. Should've been more clear. I was trying to follow the "recursive" comment documentation at https://github.com/notatestuser/gift/blob/master/src/repo.coffee?#L364 before passing in the r and f switches. I'm new to the library so maybe that's common elsewhere and I just haven't run into it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants