Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cmucl
cmucl
Commits
1e5b21e2
Commit
1e5b21e2
authored
Oct 10, 2011
by
Raymond Toy
Browse files
Handle the case where Git describe prints nothing. In this case, just
use the original file comment.
parent
fce6baff
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/main.lisp
View file @
1e5b21e2
...
...
@@ -1127,11 +1127,13 @@ in the user USER-INFO slot of STREAM-SOURCE-LOCATIONs.")
(
setf
(
default-directory
)
cwd
))))
(
generate-comment
(
file-info
)
(
let*
((
name
(
pathname
(
source-info-stream
file-info
)))
(
proc
(
run-git
name
)))
(
if
(
and
proc
(
zerop
(
process-exit-code
proc
)))
(
proc
(
run-git
name
))
comment
)
(
if
(
and
proc
(
zerop
(
process-exit-code
proc
))
(
setf
comment
(
read-line
(
process-output
proc
)
nil
nil
)))
(
format
nil
"$Header: ~A ~A $"
(
enough-namestring
name
)
(
read-line
(
process-output
proc
))
)
comment
)
(
second
form
)))))
(
cond
((
file-info-comment
file
)
(
compiler-warning
_N
"Ignoring extra file comment:~% ~S."
form
))
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment