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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:32:05+00:00 2026-05-23T07:32:05+00:00

I’m working at a company that uses SCCS internally for developing it’s main application.

  • 0

I’m working at a company that uses SCCS internally for developing it’s main application. We currently have two development streams, called Stable and Experimental. Stable has changes currently being made to it that are mostly bug fixes, and may fix problems in Experimental as well. Experimental is adding a fairly large new feature.

The main problem I’m having is that developers working on Stable don’t also put their changes in Experimental. As I’m working on Experimental, I have to merge both branches.

I’ve been using Git by myself for about a year, and it’s worked great with one branch (Stable), as I can just:

git checkout master
<copy all Stable files over, which will add changes>
git commit -a -m "Updated files 06/19/2011"
git checkout New_Feature
git rebase master

This updates all my files with the changes from Stable. However, now that they are using two development branches, I’m getting a lot of merge conflicts. This stems from SCCS putting metadata at the top of source files, like this:

#pragma ident "@(#)file1.c   1.233 06/17/11 Company_Experimental"

Note the version number (1.233), date, and company/branch keywords. The date and version number change with every check-in, and the branch changes between updates in Stable and Experimental. I don’t care what’s at the top, as when I check in the files, it will discard the top and have new values depending on when and where I check it in.

With all that said, this line will always be at the top. Is there any way to ignore the top line, or somehow make this workflow a little more manageable such that I can merge development streams with my own work and not go through a lot of meaningless merge conflicts?

Note: I’ve already campaigned to change version control systems, but we have a lot of older programmers who are not about to change their ways. Please don’t respond, “Your company should switch to X”. Trust me, I’m with you 100%.

  • 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-23T07:32:06+00:00Added an answer on May 23, 2026 at 7:32 am

    If you can simply delete the contents of the pragma ident lines in your git repo (which you probably can do, since SCCS will add them in for you), you can simply add:

    * filter=skip-ident
    

    to either .git/info/attributes (or $GIT_DIR/info/attributes) or .gitattributes (if you want to track the attributes file itself with git) and put something like:

    [filter "skip-ident"]
            clean = "sed '/\(#pragma ident\).*/s//\1/'"
    

    in .git/config. Whenever any file (files matching the pattern in the first column of .git/info/attributes, in this case ‘*’) is added to git, the contents will be run through the clean script, which in this case just removes all the ident info.

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

Sidebar

Related Questions

No related questions found

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.