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

what is the use refs/for/refs/* in gerrit?
How to put a local repo project into gerrit?
What is the effect of deleting a branch in gerrit
Right way to resolve gerrit “pending changes” merge conflict
Buck build failing for “events-logs” Gerrit plugin (jar)
Disable direct push and allow Gerrit push
Set “topic” of multiple patches simultaneously in gerrit
Using Gerrit to restrict read access to a git branch
Is it possible to search for commit by Change-Id in Gerrit?
Why is the gerrit change-id commit-hook not a push-hook?
LDAP changed acccount Full Name is not displaying in gerrit web page
Can I change the order of verification and code review in gerrit
Is it possible to make review optional on any particular branch in gerrit?
customize logo on home page gerrit
Failed to start gerrit service
How to get previous patch in gerrit

Categories

HOME
compiler-construction
testing
log4j
openlayers
testng
netbeans
omnet++
hashmap
lodash
elm
packages
survey
cross-browser
webrequest
esper
applepay
medical
vifm
node-pdfkit
circular-dependency
n-gram
highlight.js
pc
http-status-code-504
nodatime
swiftlint
underflow
facebook-access-token
elasticsearch-ruby
msys2
subdomains
skia
calibre
vsts-build-task
atl
nssegmentedcontrol
vxworks
lto
espeak
sharefile
graphenedb
janrain
vao
zip4j
promela
rdfs
iso8601
sonarlint-vs
blacklist
smart-table
eventkit
specrun
setuptools
android-textview
elements
database-optimization
player
ready-api
yaws
separator
teamcity-8.0
metaclass
ruby-2.2
mutation-observers
sframe
ideamart
unity5.2.3
bridge.net
knuth
ceil
xceed-datagrid
poller
ember-charts
algebraic-data-types
imdbpy
gnu-smalltalk
c18
ember-app-kit
anonymous-methods
mhtml
dice
fireworks
php-parser
mercurial-server
doh
f#-powerpack
coda-slider
thunderbird-lightning
firefox4
photoshop-cs4
noscript
document-conversion

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App