Code Monkey home page Code Monkey logo

exe-revision's Issues

格式化输出时间的参数意义

Code Replacement string
%C The year divided by 100 and truncated to an integer, as a decimal number (00−99)
%y Year without century, as decimal number (00 - 99)
%Y Year with century, as decimal number

前两者的区别在哪?

在实操中,发现当把系统时间人为地由 2020 年调整到 2021 年时,%C 依旧输出 20,而 %Y 输出 2021,%y 未测试

在 DeltaOS 系统上怎么做

可行吗?需要测试

#!/bin/bash

if git describe --dirty ; then
  version=$(git describe --dirty)
  echo "namespace ims { const char* version() { return \"${version}\"; } }" > version.h
else
  echo 'namespace ims { const char* version() { return "x.y.z"; } }' > version.h
fi

This is often used as part of the build process as a means of incorporating working tree information into the object you are building. Typically it might be used to include the revision number in an “About” box.

限制普通 git commit 的推送

既然是 git/svn 联合的案例,就应该同时支持两者,以便完整地测试。

我暂时只了解如何使用 git 操作 svn 仓库,不了解如果通过 svn 操作 git 仓库。

所以 gvn 主干上,所有的提交都应该是向 svn 仓库提交后转化的 commit,message 中的关键词是 git-svn-id

如果禁止 message 不包含 git-svn-id 关键词的提交上传到 gvn 分支中?

https://github.com/tnie/StockDataLayer/issues/201

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.