[ https://issues.apache.org/jira/browse/LUCENE-6938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15076696#comment-15076696 ]
Paul Elschot edited comment on LUCENE-6938 at 1/2/16 10:32 PM: --------------------------------------------------------------- bq. there must be some way to just get the checkout sha once This will work on the current branch: {code}git log --format="%H" -n 1{code} But also this, for example for the trunk branch: {code}cat .git/refs/heads/trunk{code} This is why branching in git it so cheap, a branch is no more than a file with a sha1. bq. the command line of Git is the most confusing an user-unfriendly thing Indeed, and this makes the learning curve steeper than it would need to be. was (Author: paul.elsc...@xs4all.nl): bq. there must be some way to just get the checkout sha once This will work on the current branch: {code}git log --format="%H" -n 1{code} But also this, for example for the trunk branch: {code}cat .git/refs/heads/trunk{code} This is why branching in git it so cheap, a branch is no more than a file with a sha1. bq. the command line of Git is the most confusing an user-unfriendly thing Indeed, and this makes the learning curve steeper that it would need to be. > Convert build to work with Git rather than SVN. > ----------------------------------------------- > > Key: LUCENE-6938 > URL: https://issues.apache.org/jira/browse/LUCENE-6938 > Project: Lucene - Core > Issue Type: Task > Reporter: Mark Miller > Assignee: Mark Miller > Attachments: LUCENE-6938.patch > > > We assume an SVN checkout in parts of our build and will need to move to > assuming a Git checkout. > Patches against https://github.com/dweiss/lucene-solr-svn2git from > LUCENE-6933. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org