Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
cmucl
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
25
Issues
25
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cmucl
cmucl
Commits
1e5b21e2
Commit
1e5b21e2
authored
Oct 10, 2011
by
Raymond Toy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
compiler/main.lisp
compiler/main.lisp
+5
-3
No files found.
compiler/main.lisp
View file @
1e5b21e2
...
@@ -1127,11 +1127,13 @@ in the user USER-INFO slot of STREAM-SOURCE-LOCATIONs.")
...
@@ -1127,11 +1127,13 @@ in the user USER-INFO slot of STREAM-SOURCE-LOCATIONs.")
(
setf
(
default-directory
)
cwd
))))
(
setf
(
default-directory
)
cwd
))))
(
generate-comment
(
file-info
)
(
generate-comment
(
file-info
)
(
let*
((
name
(
pathname
(
source-info-stream
file-info
)))
(
let*
((
name
(
pathname
(
source-info-stream
file-info
)))
(
proc
(
run-git
name
)))
(
proc
(
run-git
name
))
(
if
(
and
proc
(
zerop
(
process-exit-code
proc
)))
comment
)
(
if
(
and
proc
(
zerop
(
process-exit-code
proc
))
(
setf
comment
(
read-line
(
process-output
proc
)
nil
nil
)))
(
format
nil
"$Header: ~A ~A $"
(
format
nil
"$Header: ~A ~A $"
(
enough-namestring
name
)
(
enough-namestring
name
)
(
read-line
(
process-output
proc
))
)
comment
)
(
second
form
)))))
(
second
form
)))))
(
cond
((
file-info-comment
file
)
(
cond
((
file-info-comment
file
)
(
compiler-warning
_N
"Ignoring extra file comment:~% ~S."
form
))
(
compiler-warning
_N
"Ignoring extra file comment:~% ~S."
form
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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