From e148906a56996da92d5833390376a78b78a0aad1 Mon Sep 17 00:00:00 2001 From: Mark Henney Date: Mon, 5 Feb 2024 10:30:01 +0100 Subject: [PATCH] Print fieldtrip commit # at configuration --- util/configure_ft.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/util/configure_ft.m b/util/configure_ft.m index c41280d..3438a90 100644 --- a/util/configure_ft.m +++ b/util/configure_ft.m @@ -1,2 +1,7 @@ -addpath '/home/common/matlab/fieldtrip' -ft_defaults \ No newline at end of file +%% +fieldtrip_dir = '~/matlab/fieldtrip'; +addpath(fieldtrip_dir); +ft_defaults +%% +repo = gitrepo(fieldtrip_dir); +fprintf('OBS.: Load Fieldtrip at Commit: %s\n', repo.CurrentBranch.LastCommit.ID) \ No newline at end of file