Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
8cceeb8b
Commit
8cceeb8b
authored
Jul 18, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore file_spec and parser_spec file conflict markers
parent
0a787093
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
spec/lib/gitlab/conflict/file_spec.rb
spec/lib/gitlab/conflict/file_spec.rb
+19
-0
spec/lib/gitlab/conflict/parser_spec.rb
spec/lib/gitlab/conflict/parser_spec.rb
+19
-0
No files found.
spec/lib/gitlab/conflict/file_spec.rb
View file @
8cceeb8b
...
...
@@ -151,12 +151,21 @@ describe Gitlab::Conflict::File, lib: true do
default_regexp
end
<<<<<<< files/ruby/regex.rb
def project_name_regexp
/
\A
[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*
\z
/
end
def name_regexp
/
\A
[a-zA-Z0-9_
\-\.
]*
\z
/
=======
def project_name_regex
%r{
\A
[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*
\z
}
end
def name_regex
%r{
\A
[a-zA-Z0-9_
\-\.
]*
\z
}
>>>>>>> files/ruby/regex.rb
end
# Some extra lines
...
...
@@ -167,8 +176,13 @@ def path_regexp
default_regexp
end
<<<<<<< files/ruby/regex.rb
def archive_formats_regexp
/(zip|tar|7z|tar
\.
gz|tgz|gz|tar
\.
bz2|tbz|tbz2|tb2|bz2)/
=======
def archive_formats_regex
%r{(zip|tar|7z|tar
\.
gz|tgz|gz|tar
\.
bz2|tbz|tbz2|tb2|bz2)}
>>>>>>> files/ruby/regex.rb
end
def git_reference_regexp
...
...
@@ -195,8 +209,13 @@ end
protected
<<<<<<< files/ruby/regex.rb
def default_regexp
/
\A
[.?]?[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*(?<!
\.
git)
\z
/
=======
def default_regex
%r{
\A
[.?]?[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*(?<!
\.
git)
\z
}
>>>>>>> files/ruby/regex.rb
end
FILE
end
...
...
spec/lib/gitlab/conflict/parser_spec.rb
View file @
8cceeb8b
...
...
@@ -19,20 +19,34 @@ module Gitlab
default_regexp
end
<<<<<<< files/ruby/regex.rb
def project_name_regexp
/
\A
[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*
\z
/
end
def name_regexp
/
\A
[a-zA-Z0-9_
\-\.
]*
\z
/
=======
def project_name_regex
%r{
\A
[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*
\z
}
end
def name_regex
%r{
\A
[a-zA-Z0-9_
\-\.
]*
\z
}
>>>>>>> files/ruby/regex.rb
end
def path_regexp
default_regexp
end
<<<<<<< files/ruby/regex.rb
def archive_formats_regexp
/(zip|tar|7z|tar
\.
gz|tgz|gz|tar
\.
bz2|tbz|tbz2|tb2|bz2)/
=======
def archive_formats_regex
%r{(zip|tar|7z|tar
\.
gz|tgz|gz|tar
\.
bz2|tbz|tbz2|tb2|bz2)}
>>>>>>> files/ruby/regex.rb
end
def git_reference_regexp
...
...
@@ -59,8 +73,13 @@ module Gitlab
protected
<<<<<<< files/ruby/regex.rb
def default_regexp
/
\A
[.?]?[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*(?<!
\.
git)
\z
/
=======
def default_regex
%r{
\A
[.?]?[a-zA-Z0-9][a-zA-Z0-9_
\-\.
]*(?<!
\.
git)
\z
}
>>>>>>> files/ruby/regex.rb
end
end
end
...
...
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