Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off commit messages #30

Open
nufyoot opened this issue May 16, 2012 · 29 comments
Open

Turn off commit messages #30

nufyoot opened this issue May 16, 2012 · 29 comments

Comments

@nufyoot
Copy link
Contributor

nufyoot commented May 16, 2012

Hi Phil,

I think it would be helpful to turn off the commit messages so it shows a cleaner graph. Perhaps just a check box at the top? I'll submit a pull request later tomorrow.

Thanks,
Terry

@haacked
Copy link
Owner

haacked commented May 16, 2012

A checkbox is fine. I use this to teach people Git so a commit message is essential to know which commit is which. People don't memorize SHAs very well. But a checkbox to toggle them sounds cool.

@nufyoot
Copy link
Contributor Author

nufyoot commented May 16, 2012

Are you sure people don't memorize SHAs? It's even just the first 8 chars of the SHA which should be even easier yet! 😉 I agree to having it optional, and it's just a suggestion. I like the idea of using SeeGit as a tool to teach Git. I'll keep that in mind as I try to transition my team to using git. I just find myself looking at the graph and I'm just looking for a quick overview of how two branches relate to one another (another feature request coming 😄) and the messages clutter up the lines and the graph. I won't be able to submit the pull request tonight, but perhaps by Friday night.

Thanks!

@haacked
Copy link
Owner

haacked commented May 17, 2012

| and the messages clutter up the lines and the graph.

See, I'd rather solve that problem. Not sure how exactly, but I could imagine a layout that ensures that messages don't overlay each other. Or each commit gets it's own spot horizontal slice on the vertical timeline so messages can't overlap.

But I like this idea as a stop gap. :)

@nufyoot
Copy link
Contributor Author

nufyoot commented May 17, 2012

Agreed. I see that GraphLayout allows you to override CreateVertexControl and CreateEdgeControl. I created an override for CreateVertexControl and set the width and height of the control so that it didn't overlap and that seems to have worked to a certain extent. Now, I just need to get the starting point of the edge to be the middle of the SHA rather than the middle of the text. I'll submit a pull request once I have something that might work.

@haacked
Copy link
Owner

haacked commented May 17, 2012

Sweet! Thanks for helping!

@nufyoot
Copy link
Contributor Author

nufyoot commented May 22, 2012

Sorry I've been inactive for a bit. I plan on wrapping this up this week and sending a pull request on Friday. Thanks!

@Therzok Therzok mentioned this issue Mar 17, 2013
@LB--
Copy link

LB-- commented May 30, 2013

Maybe the short message should be shown in place of the commit hash until you hover? It's certainly confusing when I see something like this:

@haacked
Copy link
Owner

haacked commented May 30, 2013

What I'd really like to do is more intelligently lay out the graph so the messages don't overlap too many elements. But I do like the idea of showing the message on hover when showing commit messages is turned off.

@LB--
Copy link

LB-- commented May 30, 2013

I meant not showing the commit hash until mouse-over, and showing a shortened commit message when not moused-over. Example:

Mouse not hovering over:

[Some commit mes...]

Mouse is hovering over:

[caf3de4d] Some commit message explaining the commit

@haacked
Copy link
Owner

haacked commented May 30, 2013

Not even the commit hash? There should be some identifier. Otherwise it's just a bunch of black context-less circles. Can you photoshop (or Paint.NET) up a mockup of what you mean?

@LB--
Copy link

LB-- commented May 30, 2013

With mouse-over:

image

Without mouse-over:

image

@Therzok
Copy link
Collaborator

Therzok commented May 30, 2013

Hmmm, shouldn't be that hard. Phil, do you want to handle this or should I?

@Therzok
Copy link
Collaborator

Therzok commented May 30, 2013

Also, would you like this as an option or a built-in feature?

@haacked
Copy link
Owner

haacked commented May 30, 2013

OH, interesting. I wonder if the text should be smaller without the mouse over. That way you can see enough of the commit message to make sense of it. I like this idea. @Therzok feel free man. I am just swamped with other things right now. :)

@LB--
Copy link

LB-- commented May 30, 2013

@Therzok either way, though I can't think of a reason for the option to be disabled unless you wanted to quickly look at a bunch of commit hashes at once for cherry-picking. Thank you :)

@Therzok
Copy link
Collaborator

Therzok commented May 30, 2013

I'll fix up a PR for this in a bit. :D

@Therzok
Copy link
Collaborator

Therzok commented May 30, 2013

So, basically this will include 3 layouts:
Expanded:

  • Show SHA and commit message

Not Expanded:

  • Current layout on hover
  • Show just message when not hovered

@Therzok
Copy link
Collaborator

Therzok commented Jun 1, 2013

Should have this done today.

@Therzok
Copy link
Collaborator

Therzok commented Jun 5, 2013

I've got mudded in by exams. I'll finish this somewhere around tomorrow.

@LB--
Copy link

LB-- commented Jun 5, 2013

That's fine, I also have exams - take your time and good luck!

@Therzok
Copy link
Collaborator

Therzok commented Jun 7, 2013

@haacked I don't see any other way than to manually handle addition/removal of triggers based on being expanded or not. Tell me if you see any other better way.

In fact, the trigger collection gets sealed so I can't modify it at runtime.

@haacked
Copy link
Owner

haacked commented Jun 9, 2013

I was thinking you'd just redraw the entire graph if the setting is changed. It's kind of a core level setting. I'm not sure what the "trigger collection" is. ;)

@Therzok
Copy link
Collaborator

Therzok commented Jun 9, 2013

the trigger collection for the vertex.

Basically, this is different. Not as part of the option, but by
having two layouts, one based on expanded, one on not.

I might be able to set triggers on mouseOver based on
Expanded property bindings.

I'll try and find alternatives.

@haacked
Copy link
Owner

haacked commented Jun 9, 2013

Is there any reason not to use triggers? I just haven't dug that deeply into it to understand.

@Therzok
Copy link
Collaborator

Therzok commented Jun 9, 2013

Well. I just realised the dependency property can be used.

I couldn't find a way to use triggers based on the expanded
binding. I now know how. :D

@Therzok
Copy link
Collaborator

Therzok commented Jun 26, 2013

Aaand, I still don't have time. Swamped with tasks for MonoDevelop. =D

@LB--
Copy link

LB-- commented Jun 28, 2013

That's perfectly fine, heh. As long as it's done before 2014 I won't complain.

@Therzok
Copy link
Collaborator

Therzok commented Jun 28, 2013

Well, the internship stops in September, so it's going to be before 2014. Otherwise, if I find time in weekends, I'll make a push.

@LB--
Copy link

LB-- commented Jan 1, 2014

1.49 hours until 2014! Can we make it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants