| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1278,7 +1278,7 @@ def stash( | |||
| 1278 | 1278 | Example:: | |
| 1279 | 1279 | ||
| 1280 | 1280 | >>> repo = pygit2.Repository('.') | |
| 1281 | - >>> repo.stash(repo.default_signature(), 'WIP: stashing') | ||
| 1281 | + >>> repo.stash(repo.default_signature, 'WIP: stashing') | ||
| 1282 | 1282 | """ | |
| 1283 | 1283 | ||
| 1284 | 1284 | opts = ffi.new('git_stash_save_options *') | |
@@ -1347,7 +1347,7 @@ def stash_apply( | |||
| 1347 | 1347 | Example:: | |
| 1348 | 1348 | ||
| 1349 | 1349 | >>> repo = pygit2.Repository('.') | |
| 1350 | - >>> repo.stash(repo.default_signature(), 'WIP: stashing') | ||
| 1350 | + >>> repo.stash(repo.default_signature, 'WIP: stashing') | ||
| 1351 | 1351 | >>> repo.stash_apply(strategy=CheckoutStrategy.ALLOW_CONFLICTS) | |
| 1352 | 1352 | """ | |
| 1353 | 1353 | with git_stash_apply_options( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments