| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8a0eee3 commit a0d828f
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -154,7 +154,7 @@ def list_from_string(cls, repo, text): | |||
| 154 | 154 | return commits | |
| 155 | 155 | ||
| 156 | 156 | @classmethod | |
| 157 | - def diff(cls, repo, a, b = None, paths = []): | ||
| 157 | + def diff(cls, repo, a, b = None, paths = None): | ||
| 158 | 158 | """ | |
| 159 | 159 | Show diffs between two trees: | |
| 160 | 160 | ||
@@ -175,6 +175,8 @@ def diff(cls, repo, a, b = None, paths = []): | |||
| 175 | 175 | Returns | |
| 176 | 176 | GitPython.Diff[] | |
| 177 | 177 | """ | |
| 178 | + paths = paths or [] | ||
| 179 | + | ||
| 178 | 180 | if isinstance(b, list): | |
| 179 | 181 | paths = b | |
| 180 | 182 | b = None | |
| Back | FazBrowse Home | New Git URL |
0 commit comments