Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6370477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:56:06+00:00 2026-05-25T00:56:06+00:00

Is it possible to predict revision number before commit? It would be useful. I

  • 0

Is it possible to predict revision number before commit?

It would be useful. I want to write revision number in changelog and commit it together with changes it’s providing.

I know the number can be changed before my commit reaches repo but still it would be nice to know.

I’m writing my changelogs in plain text using rst formatting

more info: every commit message contains issue id, this is also appears in title of changelog.

please stick to the question
I’m asking if this is possible and how, not if this would make sense or anything else.

Why do I need this? I need this information that person, who deploys application would know in which revision those changes appear so he may update production server accordingly. He reads changelog anyway because it contains information about changes in database and other important stuff. It just would be a little bit easier if he musn’t use blame to see which revision this entry belongs to.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:56:07+00:00Added an answer on May 25, 2026 at 12:56 am

    Sticking to the question as requested: No, this is not possible – not reliably, anyway.

    This is a chicken-and-egg problem: the revision number is assigned only when the commit succeeds, so you can’t include it in the commit itself.

    You can go ahead and guess “all right, we’re on revision 12345, so next revision is 12346”, but while you’re guessing (even if it takes you a few milliseconds), I’ve succesfully commited a revision, and you guess wrong. Not by evil intent, mind you – I have no mechanism to know that you’re about to commit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Should I learn C before learning C++? As a professional (Java) programmer
I know its probably possible, but is it practical and doable to try and
I know its probably possible, but is it practical and doable to try and
Is it possible to predict the amount of disk space/memory that will be used
I would like to know how one achieves the following signature. I have read
Possible Duplicate: Lock the Android device programmatically I want to lock the screen through
Possible Duplicate: Parse string into argv/argc I'm trying to write a fake shell using
I'm displaying a large number of doubles on the console, and I would like
I want to write a storage backend to store larger chunks of data. The
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.