![]() Without adding any files, the command git commit won't work. Once you're ready to craft your commits, you'll use git add to specify the files that you'd like to "stage" for commit. You may get carried away and end up solving two or three problems before you remember to commit! That's OK - Git can handle that. ![]() Commits should be logical, atomic units of change that represent a specific idea. Git can handle it! Committing in two phasesĬommits have two phases to help you craft commits properly. As long as you're working with text files, you won't need to worry about how many files you have, how big they are, or how many commits you make. Ĭommits are lightweight SHA hashes, objects within Git. Before you commit, you will need to stage any new changes that you'd like to include in the commit using git add. Commits are created on the branch that you're currently checked out to (wherever HEAD is pointing) so it's always a good idea to run git status before making a commit, to check that you're checked-out to the branch that you intend to be. You can make commits to different branches, and specify exactly what changes you want to include. You may obtain a copy ofĢ0 : #include "connectivity/CommonTools.hxx"Ģ3 : #include "connectivity/ParameterCont.hxx"Ĩ1 : #include "resource/sharedresources.hxx"Ĩ2 : #include "connectivity/OSubComponent.hxx"Ĩ9 : using namespace ::com::sun::star::uno ĩ0 : using namespace ::com::sun::star::io ĩ1 : using namespace ::com::sun::star::awt ĩ2 : using namespace ::com::sun::star::ui::dialogs ĩ3 : using namespace ::com::sun::star::util ĩ4 : using namespace ::com::sun::star::lang ĩ5 : using namespace ::com::sun::star::beans ĩ6 : using namespace ::com::sun::star::container ĩ7 : using namespace ::com::sun::star::sdb ĩ8 : using namespace ::com::sun::star::sdbc ĩ9 : using namespace ::com::sun::star::sdbcx ġ00 : using namespace ::com::sun::star::form ġ05 : using namespace ::com::sun::star::uno ġ06 : using namespace ::com::sun::star::beans ġ07 : using namespace ::com::sun::star::util ġ08 : using namespace ::com::sun::star::lang ġ09 : using namespace ::com::sun::star::sdbc ġ10 : using namespace ::com::sun::star::task ġ14 : typedef sal_Bool (SAL_CALL XDatabaseMetaData::*FMetaDataSupport)() ġ17 436 : sal_Int32 getDefaultNumberFormat(const Reference& _xColumn, 118 : const Reference& _xTypes,ġ21 : OSL_ENSURE(_xTypes.is() & _xColumn.is(), "dbtools::getDefaultNumberFormat: invalid arg !") ġ22 436 : if (!_xTypes.is() || !_xColumn.is()) 123 0 : return NumberFormat::UNDEFINED 124 :ġ25 436 : sal_Int32 nDataType = 0 126 436 : sal_Int32 nScale = 0 127 : tryġ29 : // determine the datatype of the columnġ30 436 : _xColumn->getPropertyValue("Type") >= nDataType 131 :ġ32 436 : if (DataType::NUMERIC = nDataType || DataType::DECIMAL = nDataType) 133 80 : _xColumn->getPropertyValue("Scale") >= nScale 134 : }ġ37 0 : return NumberFormat::UNDEFINED 138 : }ġ39 : return getDefaultNumberFormat(nDataType,ġ41 872 : ::cppu::any2bool(_xColumn->getPropertyValue("IsCurrency")), 142 : _xTypes,ġ46 436 : sal_Int32 getDefaultNumberFormat(sal_Int32 _nDataType, 147 : sal_Int32 _nScale,ġ52 : OSL_ENSURE(_xTypes.is(), "dbtools::getDefaultNumberFormat: invalid arg !") ġ53 436 : if (!_xTypes.is()) 154 0 : return NumberFormat::UNDEFINED 155 :ġ56 436 : sal_Int32 nFormat = 0 157 436 : sal_Int32 nNumberType = _bIsCurrency ? NumberFormat::CURRENCY : NumberFormat::NUMBER 158 436 : switch (_nDataType) 159 : ģ05 11 : if(!xConnection.Git commit -m "update the README.md with link to contributing guide " Commits shape historyīy using commits, you're able to craft history intentionally and safely. The ASF licenses this file to you under the Apacheġ5 : * License, Version 2.0 (the "License") you may not use this fileġ6 : * except in compliance with the License. See the NOTICE file distributedġ3 : * with this work for additional information regarding copyrightġ4 : * ownership. ![]() If a copy of the MPL was not distributed with thisĩ : * This file incorporates work covered by the following license notice:ġ1 : * Licensed to the Apache Software Foundation (ASF) under one or moreġ2 : * contributor license agreements. Line data Source code 1 : /* -*- Mode: C++ tab-width: 4 indent-tabs-mode: nil c-basic-offset: 4 -*- */ 2 : /*ģ : * This file is part of the LibreOffice project.ĥ : * This Source Code Form is subject to the terms of the Mozilla PublicĦ : * License, v. Top level - connectivity/source/commontools - dbtools.cxx (source / functions)Ĭommit 0e63ca4fde4e446f346e35849c756a30ca294aab ![]() LCOV - commit 0e63ca4fde4e446f346e35849c756a30ca294aab - connectivity/source/commontools/dbtools.cxx LCOV - code coverage report ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |