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

Project hooks #33

Closed
eduard93 opened this issue Jan 11, 2016 · 4 comments
Closed

Project hooks #33

eduard93 opened this issue Jan 11, 2016 · 4 comments

Comments

@eduard93
Copy link
Contributor

Here's an idea: hooks for projects. I got 3 implementations:

  • On ExportItem we check ^Git("hook") = class, method and execute do $classmame(class, method) or do $classmame(class, method, itemname)
  • Same as previous but only once after user presses Commit button
  • We check for each class: does method OnExport exist? If yes, do something.

Ideas?
I require it for MDX2JSON (need to execute 1 action before commit), but I want my changes integrated into master branch so let's work out a solution for everybody.

@eduard93
Copy link
Contributor Author

I'm all for second one, I guess.

@eduard93
Copy link
Contributor Author

%SourceControl.Git.Utils:UserAction -> elseif ..IsMenuGitCommand(menuItemName)

@adaptun
Copy link
Contributor

adaptun commented Jan 11, 2016

Hooks to hooks. Fruitful idea.

What do you need to do before commit?

Can you do this with Tortoise Git Hook Scripts?

adaptun added a commit that referenced this issue Jan 11, 2016
Please, do not use this, unless you know what you are doing.

refer #33
adaptun added a commit that referenced this issue Jan 11, 2016
@eduard93
Copy link
Contributor Author

What do you need to do before commit?

I want to set last successful commit as parameter in one class and this class. Too many versions floating around and I want to identify it immediately and not by studying code

Can you do this with Tortoise Git Hook Scripts?

Actually, probably yes, but it's really an internal Cache operation.

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

No branches or pull requests

2 participants