1

Since the 'log --graph' is slow in the repo with long history, I wanna add '--since' option for it. I tried to add the following lines in my '.spacemacs' file.

(magit-define-popup-option 'magit-log-popup                                                                                                                                                             
                            ?x                                                                                                                                                                          
                            "Since date"                                                                                                                                                                
                            "--since="                                                                                                                                                                  
                            nil                                                                                                                                                                         
                            (org-read-date nil nil "-1y")                                                                                                                                               
                            )

but it doesn't work. so I wonder how to make it.

2

1 Answer 1

1

I made it by following lines, but I don't know if my setting was wrong before.

(custom-set-variables                                                                                                                                                                                   
     '(magit-log-arguments                                                                                                                                                                                  
       (list "--graph" "--decorate" "-n256"                                                                                                                                                                 
             (concatenate 'string "--since=" (org-read-date nil nil "-1y"))                                                                                                                                 
             )                                                                                                                                                                                              
       )                                                                                                                                                                                                    
    )

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.