add 'Link' header for API response
Add button for removing source branch for merged MR's.
Changed sudo by su -c

The sudo command needs a tty to run. If you put this file on a CentOS 6, for example, it will not run in the host startup process. Instead, the 'su -c' runs the command apart if it has or not a tty.

I tested this change in a fresh install of gitlab on a CentOS 6.5 with successful.
Fix searching by extern_uid for LDAP to be case-insensitive
Fixed attachment identifier displaying underneath note text
Also expose username for the /discover endpoint

Fixes #6328
Added executable file permission to binstubs
Update merge_request_observer_spec.rb
Bumped the gitlab_git gem version
Added the contribution guide notice

This is shown at the creation of new issues and new merge requests, when
the repository has a contribution guide file.
Add button for toggling inline comments in diff view.

This is useful when there are many comments and they're becoming a distraction when trying to read the diff.
Remove dir prefix and suffix from tests inside dir.
Added Piwik support
Fix another instance of "created at"

Replace it with "created on".

Change-Id: Ibd26bf82d2e64f142a4f3be6da7701e5b035602f
Don't send an email for "mentioned in" notes

Currently, an email is sent every time a mentionable is referenced
by an issue, a commit or a merge request: if I comment "This MR is
related to #5", watchers get one email for the comment, and another
one stating "Issue #5 was mentioned by issue #13".

This is annoying — but the biggest issue is when pushing an existing
branch. Every issue referenced by commit messages in this branch will
get a new mention (which is fine), and dozens of emails will be sent
for all these new mentions (which is not).

This commit fixes the spam by avoiding to send an email when a new
mention is created. In most cases the email notification for the
mentioner is enough.
By default, target original repository if fork when creating new MR.
Fix extra space added in beginning of commit message

Removes extra space in merge commit messages. This seems to have been
introduced by the functionality added in 38d8d749d which allows a user
to change a merge commit message.
Add reaping_frequency for MySQL production DB

This helped avoid ActiveRecord::ConnectionTimeoutError errors for
Sidekiq on GitLab Cloud.
Change Gitlab::Popen to use arrays for commands
Make the Gitlab::Popen path argument optional