#!/bin/sh #GERRITHOST=gerrit.libreoffice.org GERRITHOST=logerrit GERRITURL=ssh://$GERRITHOST/core get_SHA_for_change() { SHA=`ssh ${GERRITHOST?} gerrit query --all-approvals change:$1|grep ref|tail -1|cut -d: -f2` } submit() { TYPE=$1 BRANCH=$2 if test -z "$BRANCH" then BRANCH=`git symbolic-ref HEAD 2> /dev/null` BRANCH="${BRANCH##refs/heads/}" if test -z "$BRANCH" then echo "no branch specified, and could not guess the current branch" exit 1 fi echo "no branch specified, guessing current branch $BRANCH" fi git push $GERRITURL HEAD:refs/$TYPE/$BRANCH } logerrit() { echo "Host logerrit" echo " IdentityFile ~/.ssh/id_rsa" echo " User $1" echo " Port 29418" echo " HostName gerrit.libreoffice.org" echo "Host gerrit.libreoffice.org" echo " IdentityFile ~/.ssh/id_rsa" echo " User $1" echo " Port 29418" echo " HostName gerrit.libreoffice.org" } case "$1" in help|--help|"") echo "Usage: ./logerrit subcommand [options]" echo "simple and basic tool to interact with LibreOffice gerrit" echo "see https://wiki.documentfoundation.org/Development/gerrit for details." echo echo "subcommands:" echo " setup walking you though your gerrit setup" echo " test test your gerrit setup" echo echo " --- for submitters:" echo " submit [BRANCH] submit your change for review" echo " resubmit [BRANCH] create a new Change-Id and submit your change for review" echo " (yes, this modifies your last commit)" echo " submit-draft [BRANCH] submit your change as draft" echo " resubmit-draft [BRANCH] create a new Change-Id and submit your change as draft" echo " (yes, this modifies your last commit)" echo " (yes, this modifies your last commit)" echo " nextchange [BRANCH] reset branch to the remote to start with the next change" echo "Note: drafts are only visibly to yourself and those that you explicitly add as reviewers." echo echo " --- for reviewers:" echo " checkout CHANGEID checkout the changes for review" echo " pull CHANGEID pull (and merge) the changes on current branch" echo " cherry-pick CHANGEID cherry-pick the change on current branch" echo " patch CHANGEID show the change as a patch" echo " query .... query for changes for review on project core" echo " " echo echo "advanced users should consider using git review instead:" echo "http://wiki.documentfoundation.org/Development/GitReview" exit ;; setup) cd $(dirname $(readlink -f $0)) ssh_home="$HOME/.ssh"; ssh_key= created_ssh= if ! test -d $ssh_home; then echo "It appears that you have no ssh setup, running ssh-keygen to create that:" mkdir $ssh_home chmod 0700 $ssh_home created_ssh=TRUE echo echo "Hit enter to generate an ssh key - you will need to enter a pass-phrase" echo read ssh-keygen -t rsa -f "$ssh_home/id_rsa" fi if test -d $ssh_home; then if test -f "$ssh_home/id_rsa.pub"; then ssh_key=`cat $ssh_home/id_rsa.pub`; elif test -f "$ssh_home/id_dsa.pub"; then ssh_key=`cat $ssh_home/id_dsa.pub`; fi fi echo "Please go to https://gerrit.libreoffice.org/ and:" echo "- press the 'register' button in the top right corner" echo "- after login set yourself a username (its recommended to use your IRC-nick)" if test "z$ssh_key" = "z"; then echo "- add your public ssh-key into the ssh keys settings." else echo "- paste the key below into the 'Add SSH Public Key' box." echo echo "$ssh_key" echo fi echo echo "Note that you need to register additional email addresses, if you want to" echo "commit from them. Additional emails must be confirmed with repling to the" echo "invitation mail it sends you." echo read -p 'Which user name did you choose? ' GERRITUSER if test "z$created_ssh" = "z"; then echo echo "Please now add the following to your ~/.ssh/config, creating the file if needed:" echo logerrit $GERRITUSER echo else echo "Automatically creating your ssh config" (logerrit $GERRITUSER) > "$ssh_home/config" fi # setup the remote properly ... git config remote.origin.pushurl ssh://logerrit/core echo "To see if your setup was successful, run './logerrit test' then." # a good place to make sure the hooks are set up ./g -z ;; test) if test -n "`ssh $GERRITHOST 2>&1|grep \"Welcome to Gerrit Code Review\"`" then echo "Your gerrit setup was successful!" else echo "There seems to be trouble." echo "please have the output of: ssh -vvvv logerrit" echo "at hand when looking for help." fi ;; submit) submit 'for' $2 ;; resubmit) git log -1 --pretty=%B | grep -v ^Change-Id: | git commit --amend -F - submit 'for' $2 ;; submit-draft) submit drafts $2 ;; resubmit-draft) git log -1 --pretty=%B | grep -v ^Change-Id: | git commit --amend -F - submit drafts $2 ;; nextchange) if test -n "`git status -s -uno`" then echo "You have uncommitted changes. Please commit or stash these:" git status exit 1 fi CHANGEID=`git log --format=format:%b -1 HEAD|grep Change-Id|cut -d: -f2|tr -d \ ` if test -z "$CHANGEID" then CHANGEID="NOCHANGEID" fi BACKUPBRANCH=backup/$CHANGEID-`date +%F-%H%M%S` git branch $BACKUPBRANCH echo "current state backed up as $BACKUPBRANCH" BRANCH=$2 if test -z "$BRANCH" then BRANCH=`git symbolic-ref HEAD 2> /dev/null` BRANCH="${BRANCH##refs/heads/}" if test -z "$BRANCH" then echo "no branch specified, and could not guess the current branch" exit 1 fi echo "no branch specified, guessing current branch $BRANCH" fi git reset --hard remotes/origin/$BRANCH ;; checkout) get_SHA_for_change $2 git fetch $GERRITURL $SHA && git checkout FETCH_HEAD ;; review) echo "'./logerrit review' has be removed as obsolete." echo "Please use either:" echo " - git-review: https://wiki.documentfoundation.org/Development/GitReview" echo " - or the web-UI directly: https://gerrit.libreoffice.org/" echo "Both provide a better experience." exit 1; ;; pull) get_SHA_for_change $2 git pull $GERRITURL $SHA ;; cherry-pick) get_SHA_for_change $2 git fetch $GERRITURL $SHA && git cherry-pick FETCH_HEAD ;; patch) get_SHA_for_change $2 git fetch $GERRITURL $SHA && git format-patch -1 --stdout FETCH_HEAD ;; query) shift ssh ${GERRITHOST?} gerrit query project:core $@ ;; *) ssh ${GERRITHOST?} gerrit $@ ;; esac n value='distro/mimo/mimo-6-3'>distro/mimo/mimo-6-3 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sc/inc
AgeCommit message (Expand)Author
2022-11-14Add some missing member operator== const qualifiersStephan Bergmann
2022-11-13Clear only lookup caches of calling documentEike Rathke
2022-11-10lok: Introudce getDataArea for CalcSzymon Kłos
2022-11-04tdf#54857 use OUStringConstExpr in XMLPropertyMapEntryNoel Grandin
2022-11-02tdf#134882 Change label in the dialog: 'fit' is replaced with 'shrink'Bogdan B
2022-10-31tdf#150465 Improve description of RANDBETWEEN in function wizardRafael Lima
2022-10-24Related: tdf#140554 Function Wizard, FIXED() second parameter default is 2Eike Rathke
2022-10-18tdf#131910 speed up chart displayNoel Grandin
2022-10-06use more string_view in scNoel Grandin
2022-09-29introduce ScTable::GetColumnData() (tdf#151182)Luboš Luňák
2022-09-25Resolves: tdf#151165 Function Wizard: ISODD()/ISEVEN() truncate to integerEike Rathke
2022-09-23Rename #defineTaichi Haradaguchi
2022-09-22tdf#151091 Revert "tdf#148635 cache some chart stuff"Noel Grandin
2022-09-17speed up large sheet with lots of conditionsNoel Grandin
2022-09-16vcl: AnimationBitmap -> AnimationFrameChris Sherlock
2022-09-14Related: tdf#149665 Unify input of a leading ' apostrophe in non-Text cellEike Rathke
2022-09-14Resolves: tdf#150926 Add-In result svl::SharedString needs to be internedEike Rathke
2022-09-14move ErrCode to comphelper and improve debug output stringNoel Grandin
2022-09-11ScValueIterator ScDocument& parameter is now superfluousEike Rathke
2022-09-09GetCurNumFmtInfo is always called with the same context as given in ctorCaolán McNamara
2022-09-09always pass ScInterpreterContext to ScValueIteratorCaolán McNamara
2022-09-09Resolves: tdf#150312 Move base-cell-address to a valid sheet upon deletionEike Rathke
2022-09-06cid#1509199 silence Constant expression resultCaolán McNamara
2022-09-06Simplify by using replace instead of replaceAt in loop in sc/compilerJulien Nabet
2022-09-05tdf#150749 Find and replace on very large sheetNoel Grandin
2022-09-02no need to use unique_ptr for this map in sc::FormulaGroupAreaListenerNoel Grandin
2022-09-02Related: tdf#150271 Adjust unquoted string message to realityEike Rathke
2022-09-02no need to use unique_ptr for this map in sc::ScRangeNameNoel Grandin
2022-09-01Related: tdf#142293 Have ScCompiler::GetOpCodeMap() overwriteEike Rathke
2022-08-30Move input handler function names to ScGlobal staticEike Rathke
2022-08-29ref-count SdrObjectNoel Grandin
2022-08-28Fix typoAndrea Gelmini
2022-08-27sal_uLong->sal_uInt32 in ValidationEntryNoel Grandin
2022-08-27Do not gather function data over and over again for each formula inputEike Rathke
2022-08-26Fix typosAndrea Gelmini
2022-08-25try harder to ensure InterpretCellsIfNeeded() interprets (tdf#150499)Luboš Luňák
2022-08-23Make static ScCompiler::GetCharClassLocalized() public as wellEike Rathke
2022-08-19tdf#150336 add a static_assert to catch that happening againCaolán McNamara
2022-08-19Resolves: tdf#150336 overlapping slot idsCaolán McNamara
2022-08-18Move tools/diagnose_ex.h to comphelper/diagnose_ex.hxxStephan Bergmann
2022-08-11fix tsan data-raceNoel Grandin