GithubHelp home page GithubHelp logo

Comments (4)

charleso avatar charleso commented on June 17, 2024

Hi hanjie0,

Actually I think that's what I started with originally, but it would miss things. I'm not sure I would accept a patch that does exactly that, but perhaps something like:

a.subject == b.subject and a.user == b.user and (b.date - a.date) < X

(Where I'm not exactly sure what X would be)

Out of curiosity is there any particular case where both the subject and user is matching up but it shouldn't be a single commit?

from git-cc.

hanjie0 avatar hanjie0 commented on June 17, 2024

subject is the got from first part of the comments of the checkin operation. And most of time, the developers will not write the comments seriously. the simple comments will cause the same subject of a checkin/cs.

I just cannot understand why we do not just add a.date ==b.date as additional condition?
For CC, checkin operation is a atomic operation, and the date should be the same, right?

from git-cc.

charleso avatar charleso commented on June 17, 2024

For CC, checkin operation is a atomic operation

You're joking right? Part of the reason it's so hard to integrate with Clearcase is that everything is done at the file level - it has to checkin one at a time. Even UCM has to synthesise an atomic commit by using tags for everything.

It's been a long time, but I'm pretty sure if you look at the lshistory of a reasonably large commit you may find the files have slightly different timestamps.

Feel free to fork git-cc and make the change, it's not like this is an actively maintained project... :)

from git-cc.

hanjie0 avatar hanjie0 commented on June 17, 2024

Dear charleso, I am so sorry, I did not do the test myself, in fact, CC environment is not available for me up to now.
I mentioned/trusted "checkin operation is a atomic operation" since I got it from the CC user manual.

I will do the test and then back to you

from git-cc.

Related Issues (20)

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.