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 123527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T04:18:02+00:00 2026-05-11T04:18:02+00:00

Say I’m working on a project and I know that I’ve completed a specific

  • 0

Say I’m working on a project and I know that I’ve completed a specific class and that it should not be edited again, ever. How can I lock this class so no more commits on it can happen? I’ve tried locking it, but that only lasts one commit and still allows me to edit it.


Reasoning:
I have a class that performs one thing, and one thing only. It manages X part of the database. X will not change, therefor the class will not have to change. Any changes could be hazardous and introduce bugs which are not necessary. For sake of example this is one class in a project containing a googol (1.0 x 10^100) of classes. Branching for one minor class would be overly complicated, especially if half the classes were like this, you’d wind up with half a googol branches, at least.

  • 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. 2026-05-11T04:18:03+00:00Added an answer on May 11, 2026 at 4:18 am

    Create a branch of your entire project – then you can merge future changes from your trunk as and when you want to deploy them.

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

Sidebar

Related Questions

Say I have a class, e.g.: public class Person { public virtual int Id
Say I have a string which is £23.56 or $23.56 how can I convert
Say I have got following two case class es: case class Address(street: String, city:
Say i have a tab control that displays data of various types, eg EditorTabViewModel
say I have a kernel foo(int a, int b) { __shared__ int array[a]; }
Say I have a bunch of views in a UIScrollView and I want each
Say tableA has 1 row to be returned but will have 100 columns returned
Say I have an array of string s like this: string [] foos =
Say I have the line in this format word word 12 YR or word
say I have 64 threadds in a kernel __global__ void kernel( ... ) {

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.