Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
projects.thm.de
GitLab
Commits
05187f0f
Commit
05187f0f
authored
Jan 14, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly generate diff of orphan commits, like the first commit in a repository
parent
4d64a32c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CHANGELOG
CHANGELOG
+1
-0
lib/gitlab/diff/parser.rb
lib/gitlab/diff/parser.rb
+3
-2
No files found.
CHANGELOG
View file @
05187f0f
Please view this file on the master branch, on stable branches it's out of date.
v 8.4.0 (unreleased)
- Properly generate diff of orphan commits, like the first commit in a repository
- Autocomplete data is now always loaded, instead of when focusing a comment text area (Yorick Peterse)
- Improved performance of finding issues for an entire group (Yorick Peterse)
- Added custom application performance measuring system powered by InfluxDB (Yorick Peterse)
...
...
lib/gitlab/diff/parser.rb
View file @
05187f0f
...
...
@@ -56,8 +56,9 @@ def empty?
private
def
filename?
(
line
)
line
.
start_with?
(
'--- /dev/null'
,
'+++ /dev/null'
,
'--- a'
,
'+++ b'
,
'--- /tmp/diffy'
,
'+++ /tmp/diffy'
)
line
.
start_with?
(
'--- /dev/null'
,
'+++ /dev/null'
,
'--- a'
,
'+++ b'
,
'+++ a'
,
# The line will start with `+++ a` in the reverse diff of an orphan commit
'--- /tmp/diffy'
,
'+++ /tmp/diffy'
)
end
def
identification_type
(
line
)
...
...
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