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

Print out repository status #18

Open
spitschan opened this issue Sep 22, 2016 · 1 comment
Open

Print out repository status #18

spitschan opened this issue Sep 22, 2016 · 1 comment
Milestone

Comments

@spitschan
Copy link
Contributor

This is not an issue, but more a feature request. One thing that I would find useful would be to print out the status of the repositories when using a specific TbTb config. This would raise any uncommitted changes, and anything that needs to be resolved.

When there's no change, the default message from git status is:

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

So perhaps whenever the output of git status is not that, print that in the MATLAB command window.

@benjamin-heasly
Copy link
Collaborator

I think this would be really handy 👍 .

I would also want to design the status reporting for other kinds of toolbox, in addition to Git. Here are the kinds of toolbox we have now: strategies. And we're planning to add SVN soon: #14 .

Status for SVN or Git seems straightforward. For others, like installed Matlab toolboxes, maybe the status reporting is unnecessary? A no-op?

I imagine the implementation could have a few parts:

  • add a new api function like tbStatus(), which would take arguments similar to tbUse().
  • add a method like status() for the TbToolboxStrategy abstract class. The default implementation could be a no-op.
  • override the default status() method for subclasses where it makes sense, as with Git and SVN.

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

2 participants