gerrit


Gerrit patch comparision for Sql files


I am using Gerrit for code review for all the SQL files that is being used in the Project. Gerrit is hosted on Linux machine and its version is 2.6.1.
I have problem in comparing SQL patch set and all the SQL files are considered to a binary file by Gerrit and hence unable to provide the comparison.
For reference, following is the response on Gerrit comparison:
diff --git a/web/dev-db/sp/dbo.usp_getactivityownerlist.sql b/web/dev-db/sp/dbo.usp_getactivityownerlist.sql
index f623dd3..e2ed93b 100644
--- a/web/dev-db/sp/dbo.usp_getactivityownerlist.sql
+++ b/web/dev-db/sp/dbo.usp_getactivityownerlist.sql
Binary files differ
Is there any way I can configure Gerrit to consider .SQL file as a text file rather than binary file so that patch comparison is easy.
Try adding the following line to your $repo/.git/info/attributes:
*.sql crlf diff
It normally happens when user set core.autocrlf to false in global config file. This effectively disabled "smart" detection of line endings in text files.
It can be encoding issue as well, Git works best with utf-8, if the encoding is in something like utf-16, Git will think it's binary, no matter what you set in .gitattributes

Related Links

How to start Gerrit in Windows 7 after Initialization
How do I merge Gerrit instances without losing history
Buildbot nightly build is failing to checkout the branch
Serve custom commit-msg hook from Gerrit
Customize Gerrit sign in page
Gerrit rejected push for valid LDAP member
Gerrit submit change after abandoning its parent
Gerrit - Reload Plugins to incorporate changes
Adding gerrit label, but not able to see it properly in review page
Make a list inside another list in a gerrit comment
How to assign access rights to a Gerrit project using API / SSH?
How to change a patchset and push it as a new one?
Gerrit patch comparision for Sql files
How to 'reply done' in Gerrit when I address people code review comment
How to search for changesets in Gerrit than need to be rebased?
Gerrit GitBlit Plugin shows no Branch Graph

Categories

HOME
ms-access
twitter
hp-exstream
android-4.4-kitkat
setup-deployment
razor
tizen-web-app
rubygems
survey
blueprintjs
qore
webrequest
basic
modx-revolution
postgres-xl
circular-dependency
moonmail
size
static-libraries
visual-studio-2005
carthage
netflix
clearcase-ucm
telephony
windows-7-x64
facebook-page
serilog
evopdf
kudan
fish
cas
bootstrap-duallistbox
c++-amp
librato
iframe-resizer
scorm2004
gtrendsr
framemaker
phpfreechat
openoffice.org
azure-sql-database
mpmediaquery
nssegmentedcontrol
bower-install
disassembling
jquery-bootgrid
multilingual
dynamics-crm-2013
android-browser
objectlistview
code-search-engine
hilbert-curve
elmah
http-live-streaming
android-mediaprojection
password-encryption
xml-documentation
ionicons
hls.js
rdfs
google-perftools
windows-iot-core-10
or-tools
messenger
parallel-data-warehouse
angular-cache
instant
probability-density
database-optimization
multi-level
sdf
yaws
livequery
kendonumerictextbox
separator
thredds
retina
dukescript
processmodel
e10s
fscommand
codeigniter-url
tablelayout
gulp-less
uv-mapping
coverflow
bulkloader
django-nonrel
android-hardware
mhtml
cascalog
twrequest
amazon-appstore
pendrive
fireworks
xtype
recent-documents
calling-convention
actionview
mysql-error-1005
visitor-statistic
revisions
icanhaz.js
bespin
nintendo-ds
noscript
zune
msdev
geneva-server

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App