Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commit826cf16
committed
add replace method to git.Commit
This adds a replace method to git.Commit. The replace method returns acopy of the Commit object with attributes replaced from keywordarguments. For example:>>> old = repo.head.commit>>> new = old.replace(message='This is a test')closes#11231 parente1cd58b commit826cf16
2 files changed
+33
-7
lines changedLines changed: 19 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
139 | 157 |
| |
140 | 158 |
| |
141 | 159 |
| |
| |||
375 | 393 |
| |
376 | 394 |
| |
377 | 395 |
| |
378 |
| - | |
379 |
| - | |
380 |
| - | |
381 |
| - | |
382 |
| - | |
383 |
| - | |
384 |
| - | |
| 396 | + | |
385 | 397 |
| |
386 | 398 |
| |
387 | 399 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
104 | 118 |
| |
105 | 119 |
| |
106 | 120 |
| |
|
0 commit comments
Comments
(0)