Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Commit

Permalink
docs: update examples in documentation
Browse files Browse the repository at this point in the history
Closes #69
  • Loading branch information
ericcornelissen committed Nov 9, 2019
1 parent 13978c9 commit 5b19742
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,17 @@ listed below. Note that all options are optional.
#### Examples

```javascript
// Stage all files
gulp.src("./**/*").pipe(gitmodified("added"));
const gitstage = require("gulp-gitstage");

// Stage all files in the pipe
gulp.src("./**/*").pipe(gitstage());
```

```javascript
// Stage previously staged files in case they changed
const gitmodified = require("gulp-gitmodified");
gulp
.src("./**/*")
.pipe(gitmodified("modified"))
.pipe(/* edit the file */)
.pipe(gitmodified("A"));
const gitstage = require("gulp-gitstage");

// Stage files only if they're already staged
gulp.src("./**/*").pipe(gitstage({ stagedOnly: true }));
```

## Help
Expand Down

0 comments on commit 5b19742

Please sign in to comment.