This website requires JavaScript.
Explore
Help
Sign in
development
/
git
Watch
1
Star
0
Fork
You've already forked git
0
mirror of
https://github.com/git/git
synced
2024-10-30 03:13:24 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
a50fcc13dd
git
/
contrib
/
coccinelle
/
xstrdup_or_null.cocci
6 lines
70 B
Text
Raw
Normal View
History
Unescape
Escape
abspath: add absolute_pathdup() Add a function that returns a buffer containing the absolute path of its argument and a semantic patch for its intended use. It avoids an extra string copy to a static buffer. Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-01-26 17:47:45 +00:00
@@
expression E;
@@
- xstrdup(absolute_path(E))
+ absolute_pathdup(E)
Reference in a new issue
Copy permalink