-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update skuba managed sections when merging ignore files (#58)
- Loading branch information
1 parent
93cdf6c
commit 72c2e2c
Showing
9 changed files
with
94 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'skuba': patch | ||
--- | ||
|
||
**configure:** Reserve skuba-managed sections in ignore files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 36 additions & 22 deletions
58
src/cli/configure/processing/__snapshots__/ignoreFile.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,58 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`mergeWithIgnoreFile difference 1`] = ` | ||
"node_modules | ||
.DS_Store | ||
exports[`mergeWithIgnoreFile empty provided 1`] = ` | ||
"# managed by skuba | ||
node_modules | ||
# end managed by skuba | ||
" | ||
`; | ||
|
||
exports[`mergeWithIgnoreFile empty 1`] = ` | ||
" | ||
" | ||
exports[`mergeWithIgnoreFile identical 1`] = ` | ||
"# managed by skuba | ||
node_modules | ||
# end managed by skuba" | ||
`; | ||
|
||
exports[`mergeWithIgnoreFile empty base 1`] = ` | ||
"node_modules | ||
" | ||
`; | ||
exports[`mergeWithIgnoreFile provided with managed section and additional lines 1`] = ` | ||
".idea | ||
.vscode | ||
exports[`mergeWithIgnoreFile empty provided 1`] = ` | ||
"node_modules | ||
" | ||
`; | ||
# managed by skuba | ||
node_modules | ||
# end managed by skuba | ||
exports[`mergeWithIgnoreFile identical 1`] = ` | ||
"node_modules | ||
.DS_Store | ||
node_modules | ||
" | ||
`; | ||
|
||
exports[`mergeWithIgnoreFile mix 1`] = ` | ||
".DS_Store | ||
exports[`mergeWithIgnoreFile provided with no managed section 1`] = ` | ||
"# managed by skuba | ||
node_modules | ||
# end managed by skuba | ||
yarn-error.log | ||
.DS_Store | ||
" | ||
`; | ||
|
||
exports[`mergeWithIgnoreFile provided with outdated managed section 1`] = ` | ||
"# managed by skuba | ||
node_modules | ||
.DS_Store | ||
# end managed by skuba | ||
" | ||
`; | ||
|
||
exports[`mergeWithIgnoreFile whitespace 1`] = ` | ||
"node_modules | ||
exports[`mergeWithIgnoreFile provided with outdated managed section and additional lines 1`] = ` | ||
".idea | ||
.vscode | ||
# managed by skuba | ||
node_modules | ||
.DS_Store | ||
# end managed by skuba | ||
.DS_Store | ||
node_modules | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters