Commit 5025d84
resolve_symlink(): use a strbuf for internal scratch space
Aside from shortening and simplifying the code, this removes another
place where the path name length is arbitrarily limited.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent cf6950d commit 5025d84
1 file changed
Lines changed: 12 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
| 132 | + | |
| 133 | + | |
144 | 134 | | |
145 | | - | |
| 135 | + | |
146 | 136 | | |
147 | | - | |
148 | | - | |
| 137 | + | |
| 138 | + | |
149 | 139 | | |
150 | 140 | | |
151 | | - | |
| 141 | + | |
152 | 142 | | |
153 | 143 | | |
154 | 144 | | |
155 | | - | |
| 145 | + | |
156 | 146 | | |
157 | 147 | | |
158 | 148 | | |
159 | | - | |
160 | | - | |
| 149 | + | |
| 150 | + | |
161 | 151 | | |
162 | 152 | | |
163 | | - | |
| 153 | + | |
164 | 154 | | |
165 | 155 | | |
166 | 156 | | |
| 157 | + | |
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
| |||
0 commit comments