~ubuntu-branches/ubuntu/utopic/anjuta/utopic

« back to all changes in this revision

Viewing changes to plugins/git/plugin.c

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson, Jackson Doak
  • Date: 2014-07-12 15:17:39 UTC
  • mfrom: (1.1.56) (27.1.27 sid)
  • Revision ID: package-import@ubuntu.com-20140712151739-eyw0ufhvwa5s11jc
Tags: 2:3.12.0-1
* Team upload.

[ Jackson Doak ]
* New upstream release
* Drop 03_valac_0.22.patch, fixed upstream\
* debian/control:
  - Bump b-dep version on libgtk-3-dev (>= 3.6.0), libglib2.0-dev (>= 2.34.0)
  - Bump stardards-version to 3.9.5. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
634
634
        g_object_set (G_OBJECT (git_plugin->remote_branch_list_command),
635
635
                      "working-directory", git_plugin->project_root_directory, 
636
636
                      NULL);
637
 
        g_object_set (G_OBJECT (git_plugin->commit_status_command),
638
 
                      "working-directory", git_plugin->project_root_directory,
639
 
                      NULL);
640
 
        g_object_set (G_OBJECT (git_plugin->not_updated_status_command),
 
637
        g_object_set (G_OBJECT (git_plugin->status_command),
641
638
                      "working-directory", git_plugin->project_root_directory,
642
639
                      NULL);
643
640
        g_object_set (G_OBJECT (git_plugin->remote_list_command),
654
651
                      NULL);
655
652
 
656
653
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->local_branch_list_command));
657
 
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->commit_status_command));
 
654
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->status_command));
658
655
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->remote_list_command));
659
656
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->tag_list_command));
660
657
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->stash_list_command));
661
658
        anjuta_command_start_automatic_monitor (ANJUTA_COMMAND (git_plugin->ref_command));
662
659
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->local_branch_list_command));
663
 
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->commit_status_command));
 
660
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->status_command));
664
661
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->remote_list_command));
665
662
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->tag_list_command));
666
663
        anjuta_command_start (ANJUTA_COMMAND (git_plugin->stash_list_command));
681
678
        status = anjuta_shell_get_status (plugin->shell, NULL);
682
679
        
683
680
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->local_branch_list_command));
684
 
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->commit_status_command));
 
681
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->status_command));
685
682
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->remote_list_command));
686
683
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->tag_list_command));
687
684
        anjuta_command_stop_automatic_monitor (ANJUTA_COMMAND (git_plugin->stash_list_command));
910
907
                          G_CALLBACK (on_branch_list_command_data_arrived),
911
908
                          plugin);
912
909
 
913
 
        /* Create the status list commands. The different commands correspond to 
914
 
         * the two different sections in status output: Changes to be committed 
915
 
         * (staged) and Changed but not updated (unstaged.) */
916
 
        git_plugin->commit_status_command = git_status_command_new (NULL,
917
 
                                                                    GIT_STATUS_SECTION_COMMIT);
918
 
        git_plugin->not_updated_status_command = git_status_command_new (NULL,
919
 
                                                                         GIT_STATUS_SECTION_NOT_UPDATED);
 
910
        /* Status list commands */
 
911
        git_plugin->status_command = git_status_command_new (NULL);
920
912
 
921
913
        /* Remote list command */
922
914
        git_plugin->remote_list_command = git_remote_list_command_new (NULL);
924
916
        /* Ref list command. used to keep the log up to date */
925
917
        git_plugin->ref_command = git_ref_command_new (NULL);
926
918
 
927
 
        /* Always run the not updated commmand after the commmit command. */
928
 
        g_signal_connect (G_OBJECT (git_plugin->commit_status_command), 
929
 
                          "command-finished",
930
 
                          G_CALLBACK (run_next_command),
931
 
                          git_plugin->not_updated_status_command);
932
 
 
933
919
        /* Tag list command */
934
920
        git_plugin->tag_list_command = git_tag_list_command_new (NULL);
935
921
 
1029
1015
 
1030
1016
        g_object_unref (git_plugin->local_branch_list_command);
1031
1017
        g_object_unref (git_plugin->remote_branch_list_command);
1032
 
        g_object_unref (git_plugin->commit_status_command);
1033
 
        g_object_unref (git_plugin->not_updated_status_command);
 
1018
        g_object_unref (git_plugin->status_command);
1034
1019
        g_object_unref (git_plugin->remote_list_command);
1035
1020
        g_object_unref (git_plugin->tag_list_command);
1036
1021
        g_object_unref (git_plugin->stash_list_command);